Login  Register

Re: Suddenly jogl crashes

Posted by Xerxes Rånby on Oct 10, 2020; 7:43pm
URL: https://forum.jogamp.org/Suddenly-jogl-crashes-tp4040841p4040843.html

Starting with macos x 10.10+ there is an api to shedule work on the main thread from
any background thread, similar to Swing SwingUtilities and OpenJFX Platform run queues,
https://developer.apple.com/documentation/dispatch/1452921-dispatch_get_main_queue?language=objc

https://developer.apple.com/library/archive/documentation/General/Conceptual/ConcurrencyProgrammingGuide/OperationQueues/OperationQueues.html#//apple_ref/doc/uid/TP40008091-CH102-SW15

so to fix the issue for the latest macosx update nativewindow native code
has to use this api to get the dispatch_get_main_queue and shedule all
window operations to be sent to that queue.
this of course would break compatibility with macosx before 10.10 where this
API do not exist.