--- src/lib/libthread_xu/thread/thr_pspinlock.c 2005/02/01 12:38:27 1.1 +++ src/lib/libthread_xu/thread/thr_pspinlock.c 2005/03/29 19:26:20 1.2 @@ -27,6 +27,8 @@ * $DragonFly$ */ +#include + #include #include #include @@ -78,7 +80,7 @@ _pthread_spin_destroy(pthread_spinlock_t int _pthread_spin_trylock(pthread_spinlock_t *lock) { - struct pthread *curthread = _get_curthread(); + struct pthread *curthread = tls_get_curthread(); struct pthread_spinlock *lck; int ret; @@ -92,7 +94,7 @@ _pthread_spin_trylock(pthread_spinlock_t int _pthread_spin_lock(pthread_spinlock_t *lock) { - struct pthread *curthread = _get_curthread(); + struct pthread *curthread = tls_get_curthread(); struct pthread_spinlock *lck; int ret, count; @@ -121,7 +123,7 @@ _pthread_spin_lock(pthread_spinlock_t *l int _pthread_spin_unlock(pthread_spinlock_t *lock) { - struct pthread *curthread = _get_curthread(); + struct pthread *curthread = tls_get_curthread(); struct pthread_spinlock *lck; int ret;