From d2fc2e47f2cad9c1a3bbfd03be874f2e168bdec6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Sun, 2 Mar 2014 22:53:49 +0200 Subject: [PATCH] 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. --- codec/common/WelsThreadLib.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codec/common/WelsThreadLib.cpp b/codec/common/WelsThreadLib.cpp index 4ad67dad..bf31491c 100644 --- a/codec/common/WelsThreadLib.cpp +++ b/codec/common/WelsThreadLib.cpp @@ -258,7 +258,7 @@ WELS_THREAD_ERROR_CODE WelsMutexDestroy (WELS_MUTEX* mutex) { 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);