src/macosx/native/sun/osxapp/ThreadUtilities.m

Print this page

        

*** 32,42 **** // The following must be named "jvm", as there are extern references to it in AWT JavaVM *jvm = NULL; static JNIEnv *appKitEnv = NULL; static jobject appkitThreadGroup = NULL; - static BOOL awtEmbedded = NO; static inline void attachCurrentThread(void** env) { if ([NSThread isMainThread]) { JavaVMAttachArgs args; args.version = JNI_VERSION_1_4; --- 32,41 ----
*** 86,103 **** } else { [JNFRunLoop performOnMainThread:aSelector on:target withObject:arg waitUntilDone:wait]; } } - + (void)setAWTEmbedded:(BOOL)embedded { - awtEmbedded = embedded; - } - - + (BOOL)isAWTEmbedded { - return awtEmbedded; - } - @end void OSXAPP_SetJavaVM(JavaVM *vm) { --- 85,94 ----