react-native/React/Base
Tadeu Zagallo 0c74804427 Use dispatch_async instead of lock
Summary: public

The initial implementation used a lock to manage the stored profile information,
blocking the caller thread for longer than it should. Replace it with a private
queue, since the only thing we need to from the caller is to record the immediate
call time and the caller thread/queue, all the rest has absolutely no priority.

Use macros to also defer work done when generate the name of the events.

Reviewed By: nicklockwood

Differential Revision: D2603120

fb-gh-sync-id: e3e36160c893e7ae9ed3558f07c854ea76396661
2015-11-04 09:03:01 -08:00
..
RCTAssert.h Disable RCTAssert completely in production builds 2015-10-08 08:26:20 -07:00
RCTAssert.m Added lightweight generic annotations 2015-11-03 14:49:30 -08:00
RCTBatchedBridge.m Use dispatch_async instead of lock 2015-11-04 09:03:01 -08:00
RCTBridge.h Added lightweight generic annotations 2015-11-03 14:49:30 -08:00
RCTBridge.m Added lightweight generic annotations 2015-11-03 14:49:30 -08:00
RCTBridgeDelegate.h Added lightweight generic annotations 2015-11-03 14:49:30 -08:00
RCTBridgeMethod.h Prepare the bridge for C++ 2015-09-18 15:04:28 -07:00
RCTBridgeModule.h Added lightweight generic annotations 2015-11-03 14:49:30 -08:00
RCTConvert.h Added lightweight generic annotations 2015-11-03 14:49:30 -08:00
RCTConvert.m Added lightweight generic annotations 2015-11-03 14:49:30 -08:00
RCTDefines.h Implement asm trampoline rather forwardInvocation 2015-10-20 04:14:09 -07:00
RCTEventDispatcher.h Implements `onKeyPress` 2015-11-02 09:15:31 -08:00
RCTEventDispatcher.m Added lightweight generic annotations 2015-11-03 14:49:30 -08:00
RCTFrameUpdate.h Pause JS DisplayLink if nothing to process. 2015-09-29 09:22:10 -07:00
RCTFrameUpdate.m Ran Convert > To Modern Objective C Syntax 2015-08-25 01:08:49 -08:00
RCTInvalidating.h Remove isValid from RCTInvalidating 2015-08-14 01:57:18 -08:00
RCTJSMethodRegistrar.h Added non-class-scanning-based approach fror registering js methods 2015-04-08 05:45:20 -08:00
RCTJavaScriptExecutor.h Use JSStringCreateWithUTF8CString and skip NSString decoding when loading the bundle 2015-10-16 08:11:25 -07:00
RCTJavaScriptLoader.h [ReactNative] Add RCTBridgeDelegate 2015-07-28 15:57:02 -08:00
RCTJavaScriptLoader.m Added lightweight generic annotations 2015-11-03 14:49:30 -08:00
RCTKeyCommands.h Updates from Thu 26 Mar 2015-03-26 06:32:01 -07:00
RCTKeyCommands.m Added lightweight generic annotations 2015-11-03 14:49:30 -08:00
RCTKeyboardObserver.h Add keyboard-observing notifications 2015-08-25 03:49:13 -08:00
RCTKeyboardObserver.m Add KeyboardAvoidingView 2015-09-02 09:17:20 -08:00
RCTLog.h Disable RCTLog completely in production 2015-10-13 07:31:25 -07:00
RCTLog.m Added lightweight generic annotations 2015-11-03 14:49:30 -08:00
RCTModuleData.h Added lightweight generic annotations 2015-11-03 14:49:30 -08:00
RCTModuleData.m Added lightweight generic annotations 2015-11-03 14:49:30 -08:00
RCTModuleMap.h Unregistered modules will now only error when called, not on bridge init 2015-07-27 08:58:47 -08:00
RCTModuleMap.m Added lightweight generic annotations 2015-11-03 14:49:30 -08:00
RCTModuleMethod.h Bring back D2570057 (previously backed out) + fixes 2015-10-28 18:44:26 -07:00
RCTModuleMethod.m Added lightweight generic annotations 2015-11-03 14:49:30 -08:00
RCTPerformanceLogger.h Added lightweight generic annotations 2015-11-03 14:49:30 -08:00
RCTPerformanceLogger.m Added lightweight generic annotations 2015-11-03 14:49:30 -08:00
RCTRootView.h Props setter for RCTRootView 2015-10-30 09:28:27 -07:00
RCTRootView.m Props setter for RCTRootView 2015-10-30 09:28:27 -07:00
RCTRootViewDelegate.h Introduction of RCTRootViewDelegate 2015-10-26 15:41:36 -07:00
RCTRootViewInternal.h Introduction of RCTRootViewDelegate 2015-10-26 15:41:36 -07:00
RCTSparseArray.h Added lightweight generic annotations 2015-11-03 14:49:30 -08:00
RCTSparseArray.m Added lightweight generic annotations 2015-11-03 14:49:30 -08:00
RCTTouchHandler.h [ReactNative] Send batched calls from objc to js every frame + add bridge profiling 2015-04-17 04:01:02 -08:00
RCTTouchHandler.m Added lightweight generic annotations 2015-11-03 14:49:30 -08:00
RCTURLRequestDelegate.h Refactored networking logic out into RCTDownloadTask 2015-07-23 04:00:31 -08:00
RCTURLRequestHandler.h [ReactNative] Refactor RCTDataManager to support pluggable data source modules (RCTURLRequestHandlers) 2015-06-09 12:27:06 -08:00
RCTUtils.h Added lightweight generic annotations 2015-11-03 14:49:30 -08:00
RCTUtils.m Added lightweight generic annotations 2015-11-03 14:49:30 -08:00