The second call to _thread_kern_sig_defer() in sem_post() should be a call
to _thread_kern_sig_undefer().
This commit is contained in:
parent
1724eb12de
commit
bd08d0af8c
@ -227,7 +227,7 @@ sem_post(sem_t *sem)
|
||||
|
||||
pthread_mutex_unlock(&(*sem)->lock);
|
||||
|
||||
_thread_kern_sig_defer();
|
||||
_thread_kern_sig_undefer();
|
||||
retval = 0;
|
||||
RETURN:
|
||||
return retval;
|
||||
|
@ -227,7 +227,7 @@ sem_post(sem_t *sem)
|
||||
|
||||
pthread_mutex_unlock(&(*sem)->lock);
|
||||
|
||||
_thread_kern_sig_defer();
|
||||
_thread_kern_sig_undefer();
|
||||
retval = 0;
|
||||
RETURN:
|
||||
return retval;
|
||||
|
@ -227,7 +227,7 @@ sem_post(sem_t *sem)
|
||||
|
||||
pthread_mutex_unlock(&(*sem)->lock);
|
||||
|
||||
_thread_kern_sig_defer();
|
||||
_thread_kern_sig_undefer();
|
||||
retval = 0;
|
||||
RETURN:
|
||||
return retval;
|
||||
|
Loading…
Reference in New Issue
Block a user