diff options
author | davidxu <davidxu@FreeBSD.org> | 2006-02-05 03:04:54 +0000 |
---|---|---|
committer | davidxu <davidxu@FreeBSD.org> | 2006-02-05 03:04:54 +0000 |
commit | 08b1c5c92869f5ac4c198ddd824fa8fce005a704 (patch) | |
tree | 2fb49a3b114ae8be952ea411c1aac6b367229dc9 /lib/libthr/thread/thr_init.c | |
parent | 118990614c01d4866ba79dc95d91c6151985f85e (diff) | |
download | FreeBSD-src-08b1c5c92869f5ac4c198ddd824fa8fce005a704.zip FreeBSD-src-08b1c5c92869f5ac4c198ddd824fa8fce005a704.tar.gz |
Now, thread name is stored in kernel, userland no longer has to keep it.
Diffstat (limited to 'lib/libthr/thread/thr_init.c')
-rw-r--r-- | lib/libthr/thread/thr_init.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libthr/thread/thr_init.c b/lib/libthr/thread/thr_init.c index a7ff4fc..33f3ee6 100644 --- a/lib/libthr/thread/thr_init.c +++ b/lib/libthr/thread/thr_init.c @@ -384,7 +384,7 @@ init_main_thread(struct pthread *thread) thread->magic = THR_MAGIC; thread->cancelflags = PTHREAD_CANCEL_ENABLE | PTHREAD_CANCEL_DEFERRED; - thread->name = strdup("initial thread"); + thr_set_name(thread->tid, "initial thread"); /* Default the priority of the initial thread: */ thread->base_priority = THR_DEFAULT_PRIORITY; @@ -414,7 +414,6 @@ init_private(void) _thr_umtx_init(&_thr_event_lock); _thr_spinlock_init(); _thr_list_init(); - _thr_timer_init(); /* * Avoid reinitializing some things if they don't need to be, |