diff options
Diffstat (limited to 'lib/libthr/arch/i386/i386/_setcurthread.c')
-rw-r--r-- | lib/libthr/arch/i386/i386/_setcurthread.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/libthr/arch/i386/i386/_setcurthread.c b/lib/libthr/arch/i386/i386/_setcurthread.c index 81db3e9..1960c0e 100644 --- a/lib/libthr/arch/i386/i386/_setcurthread.c +++ b/lib/libthr/arch/i386/i386/_setcurthread.c @@ -75,15 +75,13 @@ ldt_init(void) void _retire_thread(void *entry) { - pthread_t thr = curthread; - - _spinlock_pthread(thr, &ldt_lock); + _spinlock(&ldt_lock); if (ldt_free == NULL) *(void **)entry = NULL; else *(void **)entry = *ldt_free; ldt_free = entry; - _spinunlock_pthread(thr, &ldt_lock); + _spinunlock(&ldt_lock); } void * |