gl/cocoa: don't deadlock if the dispatch_sync is called from the main thread
authorMatthew Waters <matthew@centricular.com>
Tue, 17 Feb 2015 07:17:59 +0000 (18:17 +1100)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 9 Dec 2017 19:31:55 +0000 (19:31 +0000)
commit3f32b4576902feb0b0c0f338f16aec159410ce02
tree7b691823d2e823acea68c8f5dc9d6154ff1b4c8f
parent9938fe7fa9da83ddb62dee657912a550a57e4392
gl/cocoa: don't deadlock if the dispatch_sync is called from the main thread

Provide a helper function to check whether we are being called from
the main thread and act appropriately.
gst-libs/gst/gl/cocoa/gstgl_cocoa_private.h
gst-libs/gst/gl/cocoa/gstglcontext_cocoa.m
gst-libs/gst/gl/cocoa/gstglwindow_cocoa.m