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_sem.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'lib/libthr/thread/thr_sem.c') diff --git a/lib/libthr/thread/thr_sem.c b/lib/libthr/thread/thr_sem.c index 17059e3c6b03..c634034a6b74 100644 --- a/lib/libthr/thread/thr_sem.c +++ b/lib/libthr/thread/thr_sem.c @@ -213,12 +213,10 @@ _sem_trywait(sem_t *sem) int _sem_post(sem_t *sem) { - pthread_t curthread; int retval; _SEM_CHECK_VALIDITY(sem); - curthread = _get_curthread(); /* * sem_post() is required to be safe to call from within signal * handlers. Thus, we must defer signals. -- cgit v1.2.3