diff options
Diffstat (limited to 'lib/libthr/thread/thr_sig.c')
-rw-r--r-- | lib/libthr/thread/thr_sig.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libthr/thread/thr_sig.c b/lib/libthr/thread/thr_sig.c index 0cd9afc..495c153 100644 --- a/lib/libthr/thread/thr_sig.c +++ b/lib/libthr/thread/thr_sig.c @@ -96,7 +96,7 @@ _thr_suspend_check(struct pthread *curthread) * ourself. */ curthread->critical_count++; - THR_UMTX_LOCK(curthread, &(curthread)->lock); + THR_UMUTEX_LOCK(curthread, &(curthread)->lock); while ((curthread->flags & (THR_FLAGS_NEED_SUSPEND | THR_FLAGS_SUSPENDED)) == THR_FLAGS_NEED_SUSPEND) { curthread->cycle++; @@ -112,12 +112,12 @@ _thr_suspend_check(struct pthread *curthread) if (curthread->state == PS_DEAD) break; curthread->flags |= THR_FLAGS_SUSPENDED; - THR_UMTX_UNLOCK(curthread, &(curthread)->lock); + THR_UMUTEX_UNLOCK(curthread, &(curthread)->lock); _thr_umtx_wait(&curthread->cycle, cycle, NULL); - THR_UMTX_LOCK(curthread, &(curthread)->lock); + THR_UMUTEX_LOCK(curthread, &(curthread)->lock); curthread->flags &= ~THR_FLAGS_SUSPENDED; } - THR_UMTX_UNLOCK(curthread, &(curthread)->lock); + THR_UMUTEX_UNLOCK(curthread, &(curthread)->lock); curthread->critical_count--; /* |