comparison src/macosx/native/sun/awt/CDropTarget.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 cb4f5f486c45
children 2c36899500a0
comparison
equal deleted inserted replaced
1:05f188589af4 2:e723cbe6bc5a
388 sDraggingError = !jsuccess; 388 sDraggingError = !jsuccess;
389 sDragOperation = [DnDUtilities mapJavaDragOperationToNS:jdropaction]; 389 sDragOperation = [DnDUtilities mapJavaDragOperationToNS:jdropaction];
390 390
391 // Release dragging data if any when Java's AWT event thread is all finished. 391 // Release dragging data if any when Java's AWT event thread is all finished.
392 // Make sure dragging data is released on the native event thread. 392 // Make sure dragging data is released on the native event thread.
393 [ThreadUtilities performOnMainThread:@selector(safeReleaseDraggingData:) onObject:self 393 [ThreadUtilities performOnMainThread:@selector(safeReleaseDraggingData:) on:self withObject:draggingSequenceNumberID waitUntilDone:NO];
394 withObject:draggingSequenceNumberID waitUntilDone:NO awtMode:NO];
395 } 394 }
396 395
397 - (jint)currentJavaActions { 396 - (jint)currentJavaActions {
398 return [DnDUtilities mapNSDragOperationToJava:sUpdateOperation]; 397 return [DnDUtilities mapNSDragOperationToJava:sUpdateOperation];
399 } 398 }