comparison src/macosx/native/sun/awt/ApplicationDelegate.m @ 7871:d502cc7bcc3d

8006634: Unify LWCToolkit.invokeAndWait() and sun.awt.datatransfer.ToolkitThreadBlockedHandler Summary: Changed the logic for the nested event loops and deleted deadlock detection Reviewed-by: art, denis
author pchelko
date Mon, 25 Feb 2013 10:17:25 +0000
parents 5309fed435b5
children
comparison
equal deleted inserted replaced
1:3413a015f13d 2:5c6702b23059
565 JNIEXPORT void JNICALL Java_com_apple_eawt__1AppEventHandler_nativeRegisterForNotification 565 JNIEXPORT void JNICALL Java_com_apple_eawt__1AppEventHandler_nativeRegisterForNotification
566 (JNIEnv *env, jclass clz, jint notificationType) 566 (JNIEnv *env, jclass clz, jint notificationType)
567 { 567 {
568 JNF_COCOA_ENTER(env); 568 JNF_COCOA_ENTER(env);
569 [ThreadUtilities performOnMainThread:@selector(_registerForNotification:) 569 [ThreadUtilities performOnMainThread:@selector(_registerForNotification:)
570 onObject:[ApplicationDelegate class] 570 on:[ApplicationDelegate class]
571 withObject:[NSNumber numberWithInt:notificationType] 571 withObject:[NSNumber numberWithInt:notificationType]
572 waitUntilDone:NO 572 waitUntilDone:NO]; // AWT_THREADING Safe (non-blocking)
573 awtMode:NO]; // AWT_THREADING Safe (non-blocking)
574 JNF_COCOA_EXIT(env); 573 JNF_COCOA_EXIT(env);
575 } 574 }
576 575
577 /* 576 /*
578 * Class: com_apple_eawt__AppDockIconHandler 577 * Class: com_apple_eawt__AppDockIconHandler