Ensure thread safety in the exeuction of RuntimeExecutor

Summary: This diff ensures thread safety for operations invoked by the runtime executor

Reviewed By: shergin

Differential Revision: D13136340

fbshipit-source-id: 119092dff29b37f39d4bcdcc34f1c34d638b7e07
This commit is contained in:
David Vacca 2018-11-25 17:18:09 -08:00 committed by Facebook Github Bot
parent f2894e58cf
commit 0357d0de64
2 changed files with 6 additions and 1 deletions

View File

@ -7,12 +7,16 @@
package com.facebook.react.fabric; package com.facebook.react.fabric;
import com.facebook.react.bridge.JavaScriptContextHolder; import com.facebook.react.bridge.JavaScriptContextHolder;
import com.facebook.react.bridge.queue.MessageQueueThread;
public interface FabricBinding { public interface FabricBinding {
// TODO: T31905686 change types of UIManager and EventBeatManager when moving to OSS // TODO: T31905686 change types of UIManager and EventBeatManager when moving to OSS
void register( void register(
JavaScriptContextHolder jsContext, FabricBinder fabricBinder, Object eventBeatManager); JavaScriptContextHolder jsContext,
FabricBinder fabricBinder,
Object eventBeatManager,
MessageQueueThread jsMessageQueueThread);
void unregister(); void unregister();
} }

View File

@ -6,6 +6,7 @@ EXPORTED_HEADERS = [
"CxxSharedModuleWrapper.h", "CxxSharedModuleWrapper.h",
"JavaModuleWrapper.h", "JavaModuleWrapper.h",
"JavaScriptExecutorHolder.h", "JavaScriptExecutorHolder.h",
"JMessageQueueThread.h",
"JReactMarker.h", "JReactMarker.h",
"JSLoader.h", "JSLoader.h",
"JSLogging.h", "JSLogging.h",