diff options
| author | David Xu <davidxu@FreeBSD.org> | 2005-04-02 01:20:00 +0000 |
|---|---|---|
| committer | David Xu <davidxu@FreeBSD.org> | 2005-04-02 01:20:00 +0000 |
| commit | a091d823ad89a36935ba6e5568c4720a35f9a99b (patch) | |
| tree | 6aaef5f553a6539306bd6f5679d039ed3c2abcce /lib/libthr/thread/thr_self.c | |
| parent | 824a5e96dc28e3a2b48c4eb714bfb98efff1c8c4 (diff) | |
Notes
Diffstat (limited to 'lib/libthr/thread/thr_self.c')
| -rw-r--r-- | lib/libthr/thread/thr_self.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/libthr/thread/thr_self.c b/lib/libthr/thread/thr_self.c index 0d6953842268..baaf44cb60e9 100644 --- a/lib/libthr/thread/thr_self.c +++ b/lib/libthr/thread/thr_self.c @@ -31,7 +31,9 @@ * * $FreeBSD$ */ + #include <pthread.h> + #include "thr_private.h" __weak_reference(_pthread_self, pthread_self); @@ -39,6 +41,8 @@ __weak_reference(_pthread_self, pthread_self); pthread_t _pthread_self(void) { + _thr_check_init(); + /* Return the running thread pointer: */ - return (curthread); + return (_get_curthread()); } |
