PERFORCE change 55290 for review
Marcel Moolenaar
marcel at FreeBSD.org
Sat Jun 19 04:46:31 GMT 2004
http://perforce.freebsd.org/chv.cgi?CH=55290
Change 55290 by marcel at 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) {
More information about the p4-projects
mailing list