diff options
Diffstat (limited to 'lib/libthr/thread/thr_event.c')
-rw-r--r-- | lib/libthr/thread/thr_event.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libthr/thread/thr_event.c b/lib/libthr/thread/thr_event.c index 6a64cf9..cdab9d7 100644 --- a/lib/libthr/thread/thr_event.c +++ b/lib/libthr/thread/thr_event.c @@ -44,11 +44,11 @@ _thr_report_creation(struct pthread *curthread, struct pthread *newthread) curthread->event_buf.event = TD_CREATE; curthread->event_buf.th_p = (td_thrhandle_t *)newthread; curthread->event_buf.data = 0; - THR_UMTX_LOCK(curthread, &_thr_event_lock); + THR_UMUTEX_LOCK(curthread, &_thr_event_lock); _thread_last_event = curthread; _thread_bp_create(); _thread_last_event = NULL; - THR_UMTX_UNLOCK(curthread, &_thr_event_lock); + THR_UMUTEX_UNLOCK(curthread, &_thr_event_lock); } void @@ -57,9 +57,9 @@ _thr_report_death(struct pthread *curthread) curthread->event_buf.event = TD_DEATH; curthread->event_buf.th_p = (td_thrhandle_t *)curthread; curthread->event_buf.data = 0; - THR_UMTX_LOCK(curthread, &_thr_event_lock); + THR_UMUTEX_LOCK(curthread, &_thr_event_lock); _thread_last_event = curthread; _thread_bp_death(); _thread_last_event = NULL; - THR_UMTX_UNLOCK(curthread, &_thr_event_lock); + THR_UMUTEX_UNLOCK(curthread, &_thr_event_lock); } |