Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 19 Jun 2004 04:46:10 GMT
From:      Marcel Moolenaar <marcel@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 55290 for review
Message-ID:  <200406190446.i5J4kAPb058410@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=55290

Change 55290 by marcel@marcel_nfs on 2004/06/19 04:45:23

	Use lwpid_t consistently.

Affected files ...

.. //depot/projects/gdb/sys/kern/kern_shutdown.c#9 edit
.. //depot/projects/gdb/sys/kern/kern_thread.c#15 edit

Differences ...

==== //depot/projects/gdb/sys/kern/kern_shutdown.c#9 (text+ko) ====

@@ -126,7 +126,7 @@
 
 /* Context information for dump-debuggers. */
 static struct pcb dumppcb;		/* Registers. */
-static int dumptid;			/* Thread ID. */
+static lwpid_t dumptid;			/* Thread ID. */
 
 static void boot(int) __dead2;
 static void poweroff_wait(void *, int);

==== //depot/projects/gdb/sys/kern/kern_thread.c#15 (text+ko) ====

@@ -129,7 +129,7 @@
 struct tid_bitmap_part {
 	STAILQ_ENTRY(tid_bitmap_part) bmp_next;
 	tid_bitmap_word	bmp_bitmap[TID_BITMAP_SIZE];
-	int		bmp_base;
+	lwpid_t		bmp_base;
 	int		bmp_free;
 };
 
@@ -176,7 +176,8 @@
 {
 	struct thread *td;
 	struct tid_bitmap_part *bmp;
-	int bit, idx, tid;
+	lwpid_t tid;
+	int bit, idx;
 
 	td = (struct thread *)mem;
 
@@ -537,11 +538,12 @@
 /*
  * Assign a thread ID.
  */
-int
+lwpid_t
 thread_new_tid(void)
 {
 	struct tid_bitmap_part *bmp, *new;
-	int bit, idx, tid;
+	lwpid_t tid;
+	int bit, idx;
 
 	mtx_lock(&tid_lock);
 	STAILQ_FOREACH(bmp, &tid_bitmap, bmp_next) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200406190446.i5J4kAPb058410>