ref: d2fc2e47f2cad9c1a3bbfd03be874f2e168bdec6
parent: d767e216a8312907dd8c03f12f3e4741b603c852
author: Martin Storsjö <martin@martin.st>
date: Sun Mar 2 17:53:49 EST 2014
Clarify a comment in the threading code Named semaphores are used instead of unnamed semaphores in the unix codepaths, since unnamed semaphores aren't available on OS X.
--- a/codec/common/WelsThreadLib.cpp
+++ b/codec/common/WelsThreadLib.cpp
@@ -258,7 +258,7 @@
return pthread_mutex_destroy (mutex);
}
-// unnamed semaphores can not work well for posix threading models under not root users
+// unnamed semaphores aren't supported on OS X
WELS_THREAD_ERROR_CODE WelsEventInit (WELS_EVENT* event) {
return sem_init (event, 0, 0);