summaryrefslogtreecommitdiffstats
path: root/lib/libthr/thread/thr_list.c
diff options
context:
space:
mode:
authordavidxu <davidxu@FreeBSD.org>2005-04-06 13:57:31 +0000
committerdavidxu <davidxu@FreeBSD.org>2005-04-06 13:57:31 +0000
commited60415691d3e58f9e06e27a395c6063502dbee2 (patch)
tree89887349d79c19f91c9573bdac404989977b27ee /lib/libthr/thread/thr_list.c
parenta991e5caf862c4e7b2c366423ba5e4953488d250 (diff)
downloadFreeBSD-src-ed60415691d3e58f9e06e27a395c6063502dbee2.zip
FreeBSD-src-ed60415691d3e58f9e06e27a395c6063502dbee2.tar.gz
Remove unique id field which is no longer used by debugger.
Diffstat (limited to 'lib/libthr/thread/thr_list.c')
-rw-r--r--lib/libthr/thread/thr_list.c15
1 files changed, 2 insertions, 13 deletions
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;
OpenPOWER on IntegriCloud