jayji pushed a commit to branch efl-1.20.

http://git.enlightenment.org/core/efl.git/commit/?id=06d752b6327132ea54762cc3e676dbb0749b43c0

commit 06d752b6327132ea54762cc3e676dbb0749b43c0
Author: Jean Guyomarc'h <j...@guyomarch.bzh>
Date:   Tue Sep 5 00:09:57 2017 +0200

    eina: fix destruction of the osx semaphores
    
    Well... that's just embarassing... semaphore_destroy() actually takes
    the mach task as its first parameter, not the second. This core
    amazingly worked very fine on macOS earlier than Sierra.
    
    Fixes T5245
---
 src/lib/eina/eina_lock.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/eina/eina_lock.c b/src/lib/eina/eina_lock.c
index 3423852a8d..76819367b4 100644
--- a/src/lib/eina/eina_lock.c
+++ b/src/lib/eina/eina_lock.c
@@ -303,7 +303,7 @@ _eina_semaphore_free(Eina_Semaphore *sem)
    if (sem)
      {
 #if defined(EINA_HAVE_OSX_SEMAPHORE)
-        return (semaphore_destroy(*sem, mach_task_self()) == KERN_SUCCESS)
+        return (semaphore_destroy(mach_task_self(), *sem) == KERN_SUCCESS)
         ? EINA_TRUE : EINA_FALSE;
 #else
         return (sem_destroy(sem) == 0) ? EINA_TRUE : EINA_FALSE;

-- 


Reply via email to