JNF performOnMainThreadWaiting thread safety

Leonid Romanov leonid.romanov at oracle.com
Mon Feb 18 17:22:50 PST 2013


Hi,
I've got a question: is + (void)performOnMainThreadWaiting:(BOOL)waitUntilDone withBlock:(void (^)())block thread safe? Suppose two native threads are calling this method with waitUntilDone set to YES.  Should we be OK in this case or some external locking is necessary to ensure that both threads won't call performOnMainThreadWaiting at the "same" time?

Thanks,
Leonid.


More information about the macosx-port-dev mailing list