summaryrefslogtreecommitdiffstats
path: root/lib/libthr/thread/thr_info.c
diff options
context:
space:
mode:
authorjeff <jeff@FreeBSD.org>2003-04-02 03:05:39 +0000
committerjeff <jeff@FreeBSD.org>2003-04-02 03:05:39 +0000
commitbb610376a5e993ec00e22a5e13f106b3b43d90f6 (patch)
tree3edb86617f8b88a54083b0eeb1e45c1b253d05e0 /lib/libthr/thread/thr_info.c
parentdc2ed57595804600bd48f7fa875694c5f01ec98d (diff)
downloadFreeBSD-src-bb610376a5e993ec00e22a5e13f106b3b43d90f6.zip
FreeBSD-src-bb610376a5e993ec00e22a5e13f106b3b43d90f6.tar.gz
- 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().
Diffstat (limited to 'lib/libthr/thread/thr_info.c')
-rw-r--r--lib/libthr/thread/thr_info.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/libthr/thread/thr_info.c b/lib/libthr/thread/thr_info.c
index 2e2f9de..b76d8e5 100644
--- a/lib/libthr/thread/thr_info.c
+++ b/lib/libthr/thread/thr_info.c
@@ -135,7 +135,6 @@ _thread_dump_info(void)
static void
dump_thread(int fd, pthread_t pthread, int long_version)
{
- struct pthread *curthread = _get_curthread();
char s[512];
int i;
OpenPOWER on IntegriCloud