From 26f52e2f8b92ffea807005dc15866b2cf79ed3ac Mon Sep 17 00:00:00 2001 From: Jeff Roberson Date: Wed, 2 Apr 2003 03:05:39 +0000 Subject: - Define curthread as _get_curthread() and remove all direct calls to _get_curthread(). This is similar to the kernel's curthread. Doing this saves stack overhead and is more convenient to the programmer. - Pass the pointer to the newly created thread to _thread_init(). - Remove _get_curthread_slow(). --- lib/libthr/thread/thr_exit.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'lib/libthr/thread/thr_exit.c') diff --git a/lib/libthr/thread/thr_exit.c b/lib/libthr/thread/thr_exit.c index 2d791d249877..f18c7c88bc2a 100644 --- a/lib/libthr/thread/thr_exit.c +++ b/lib/libthr/thread/thr_exit.c @@ -72,8 +72,6 @@ _thread_exit(char *fname, int lineno, char *string) void _thread_exit_cleanup(void) { - struct pthread *curthread = _get_curthread(); - /* * POSIX states that cancellation/termination of a thread should * not release any visible resources (such as mutexes) and that @@ -93,7 +91,6 @@ _thread_exit_cleanup(void) void _pthread_exit(void *status) { - struct pthread *curthread = _get_curthread(); pthread_t pthread; /* Check if this thread is already in the process of exiting: */ -- cgit v1.2.3