void* threadId = PR_GetCurrentThread(); if (threadId == (void *) gEmbeddedThread) {  processEventLoop(initContext); }
processEventLoop(initContext);
JNIEXPORT void JNICALL Java_org_mozilla_webclient_wrapper_1native_NativeEventThread_nativeProcessEvents(JNIEnv *env, jobject obj, jint webShellPtr){    WebShellInitContext * initContext = (WebShellInitContext *) webShellPtr;        if (nsnull == initContext) {	    ::util_ThrowExceptionToJava(env,                                     "NULL webShellPtr passed to nativeProcessEvents.");        return;    }    void* threadId = PR_GetCurrentThread();    if (threadId == (void *) gEmbeddedThread) {        //        printf("--------- Thread ID ---- %p\n",gEmbeddedThread);        processEventLoop(initContext);    }}