Bug 1049136 - Add native-code awareness of the Java UI thread so we can do thread assertions. r=snorp

This commit is contained in:
Kartikaya Gupta
2014-08-08 18:15:38 -04:00
parent 33d3a7d2ff
commit 0f0869d9a4
7 changed files with 46 additions and 2 deletions

View File

@@ -47,6 +47,7 @@ using namespace mozilla::widget::android;
using namespace mozilla::gfx;
AndroidBridge* AndroidBridge::sBridge;
pthread_t AndroidBridge::sJavaUiThread = -1;
static unsigned sJavaEnvThreadIndex = 0;
static jobject sGlobalContext = nullptr;
static void JavaThreadDetachFunc(void *arg);