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
This commit is contained in:
Jean Guyomarc'h 2017-09-05 00:09:57 +02:00
parent 660e76a562
commit b5e7a00681
1 changed files with 1 additions and 1 deletions

View File

@ -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;