[vlc-devel] [PATCH 5/9] VLCKit: There is no reason to have a blocking call to main thread from the event manager thread
Florent Pillet
fpillet at gmail.com
Fri Jul 11 01:35:07 CEST 2014
If there is, it should be properly documented. Blocking calls are evil.
---
Sources/VLCEventManager.m | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Sources/VLCEventManager.m b/Sources/VLCEventManager.m
index 9b87bf4..31d11dd 100644
--- a/Sources/VLCEventManager.m
+++ b/Sources/VLCEventManager.m
@@ -221,7 +221,7 @@ static void * EventDispatcherMainLoop(void * user_data)
else
[self performSelectorOnMainThread:@selector(callObjectMethodWithArgs:)
withObject:message
- waitUntilDone: YES];
+ waitUntilDone: NO];
}
/* Sleep a bit not to flood the interface */
--
1.8.5.2 (Apple Git-48)
More information about the vlc-devel
mailing list