< prev index next >
src/java.desktop/macosx/native/libawt_lwawt/awt/LWCToolkit.m
Print this page
*** 741,753 ****
}
JNIEXPORT jint JNICALL DEF_JNI_OnLoad(JavaVM *vm, void *reserved) {
OSXAPP_SetJavaVM(vm);
! // We need to let Foundation know that this is a multithreaded application, if it isn't already.
if (![NSThread isMultiThreaded]) {
! [NSThread detachNewThreadSelector:nil toTarget:nil withObject:nil];
}
return JNI_VERSION_1_4;
}
--- 741,754 ----
}
JNIEXPORT jint JNICALL DEF_JNI_OnLoad(JavaVM *vm, void *reserved) {
OSXAPP_SetJavaVM(vm);
! // We need to let Foundation know that this is a multithreaded application,
! // if it isn't already.
if (![NSThread isMultiThreaded]) {
! [[[[NSThread alloc] init] autorelease] start];
}
return JNI_VERSION_1_4;
}
< prev index next >