diff options
-rw-r--r-- | lib/libthr/thread/thr_init.c | 1 | ||||
-rw-r--r-- | lib/libthr/thread/thr_list.c | 15 | ||||
-rw-r--r-- | lib/libthr/thread/thr_private.h | 1 |
3 files changed, 2 insertions, 15 deletions
diff --git a/lib/libthr/thread/thr_init.c b/lib/libthr/thread/thr_init.c index f9545c2..a0f4e5c 100644 --- a/lib/libthr/thread/thr_init.c +++ b/lib/libthr/thread/thr_init.c @@ -369,7 +369,6 @@ init_main_thread(struct pthread *thread) TAILQ_INIT(&thread->pri_mutexq); thread->state = PS_RUNNING; - thread->uniqueid = 0; /* Others cleared to zero by thr_alloc() */ } diff --git a/lib/libthr/thread/thr_list.c b/lib/libthr/thread/thr_list.c index 905ec77..6fb228b 100644 --- a/lib/libthr/thread/thr_list.c +++ b/lib/libthr/thread/thr_list.c @@ -61,7 +61,6 @@ static umtx_t free_thread_lock; static umtx_t tcb_lock; static int free_thread_count = 0; static int inited = 0; -static u_int64_t next_uniqueid = 1; LIST_HEAD(thread_hash_head, pthread); #define HASH_QUEUES 128 @@ -217,23 +216,13 @@ thr_destroy(struct pthread *curthread __unused, struct pthread *thread) } /* - * Add an active thread: - * - * o Assign the thread a unique id (which GDB uses to track - * threads. - * o Add the thread to the list of all threads and increment - * number of active threads. + * Add the thread to the list of all threads and increment + * number of active threads. */ void _thr_link(struct pthread *curthread, struct pthread *thread) { THREAD_LIST_LOCK(curthread); - /* - * Initialize the unique id (which GDB uses to track - * threads), add the thread to the list of all threads, - * and - */ - thread->uniqueid = next_uniqueid++; THR_LIST_ADD(thread); if (thread->attr.flags & PTHREAD_DETACHED) thread->tlflags |= TLFLAGS_DETACHED; diff --git a/lib/libthr/thread/thr_private.h b/lib/libthr/thread/thr_private.h index 5763007..405340f 100644 --- a/lib/libthr/thread/thr_private.h +++ b/lib/libthr/thread/thr_private.h @@ -339,7 +339,6 @@ struct pthread { #define THR_MAGIC ((u_int32_t) 0xd09ba115) u_int32_t magic; char *name; - u_int64_t uniqueid; /* for gdb */ /* * Lock for accesses to this thread structure. |