react-native/React
James Ide f5ad9c2103 [Crashfix] Replace dispatch_get_current_queue with DISPATCH_CURRENT_QUEUE_LABEL
Summary:
I encountered a crash when `RCTCurrentThreadName` called `dispatch_get_current_queue`. There are reports of it crashing e.g. https://github.com/CocoaLumberjack/CocoaLumberjack/issues/108 so better not to call it at all, plus it is deprecated.

Since we still want helpful debugging information, use `DISPATCH_CURRENT_QUEUE_LABEL` instead. It's kind of strange that this constant is defined to be NULL and the docs for `dispatch_get_queue_label` say not to pass in NULL, but in practice `DISPATCH_CURRENT_QUEUE_LABEL` is provided by the iOS SDK and works correctly.

Closes https://github.com/facebook/react-native/pull/1868
Github Author: James Ide <ide@jameside.com>
2015-07-06 03:17:03 -08:00
..
Base [Crashfix] Replace dispatch_get_current_queue with DISPATCH_CURRENT_QUEUE_LABEL 2015-07-06 03:17:03 -08:00
Executors [ReactNative] Add PerformanceLogger to measure TTI 2015-06-19 15:01:35 -08:00
Layout Fixed layout bug 2015-05-13 13:24:36 -07:00
Modules Revert "[React Native] Remove layout-only nodes" 2015-06-25 13:30:06 -08:00
React.xcodeproj [React Native] Re-alphabetize file names in Xcode projects 2015-07-06 01:57:06 -08:00
Views [WebView]: Kill `shouldInjectAJAXHandler`, and add `injectedJavascriptIOS` 2015-07-01 18:56:14 -08:00