mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-02-10 09:12:46 +08:00
WebWorkers: Add c++ API for working with MessageQueueThread
Summary: public Adds a fbjni API similar to JNativeRunnable so that you can post ##std::function<void()>## to MessageQueueThreads. Reviewed By: lexs Differential Revision: D2779094 fb-gh-sync-id: 8f873fc93fb6b817268e9422c0b6f85c3e453676
This commit is contained in:
committed by
facebook-github-bot-4
parent
5fb1966509
commit
dd60964736
@@ -29,6 +29,7 @@ public class MessageQueueThreadRegistry {
|
||||
/**
|
||||
* @return the MessageQueueThread that owns the current Thread.
|
||||
*/
|
||||
@DoNotStrip
|
||||
public static MessageQueueThread myMessageQueueThread() {
|
||||
return Assertions.assertNotNull(
|
||||
sMyMessageQueueThread.get(),
|
||||
|
||||
Reference in New Issue
Block a user