diff options
author | Roland McGrath <roland@gnu.org> | 2002-05-08 09:37:04 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2002-05-08 09:37:04 +0000 |
commit | 4dbcb1004d011d7aa2fd474400aa503a74eacb02 (patch) | |
tree | 223ee2dd297cb9034a5829e9fe7329fca54a1656 /libthreads | |
parent | 4c7ffdb4295737f2b36d89aedb175482765b67de (diff) |
2002-05-08 Roland McGrath <roland@frob.com>
* cthread_internals.h: int -> void * for `busy' member.
* cprocs.c (cthread_mach_msg): Don't cast to int when setting it.
* cprocs.c (cthread_mag_active): Likewise.
Diffstat (limited to 'libthreads')
-rw-r--r-- | libthreads/cprocs.c | 9 | ||||
-rw-r--r-- | libthreads/cthread_internals.h | 13 |
2 files changed, 19 insertions, 3 deletions
diff --git a/libthreads/cprocs.c b/libthreads/cprocs.c index f489f2b4..dd8ed95c 100644 --- a/libthreads/cprocs.c +++ b/libthreads/cprocs.c @@ -26,6 +26,11 @@ /* * HISTORY * $Log: cprocs.c,v $ + * Revision 1.14 2002/05/08 09:32:11 roland + * 2002-05-07 Roland McGrath <roland@frob.com> + * + * * cprocs.c (cproc_list_lock): Declare type as spin_lock_t. + * * Revision 1.13 2001/03/31 23:01:01 roland * 2001-03-31 Roland McGrath <roland@frob.com> * @@ -1103,7 +1108,7 @@ mach_port_t port; spin_lock(&port_entry->lock); if (port_entry->held < port_entry->max) { port_entry->held++; - p->busy = (int)port_entry; + p->busy = port_entry; } spin_unlock(&port_entry->lock); } @@ -1166,7 +1171,7 @@ cthread_mach_msg(header, option, #ifdef WAIT_DEBUG p->waiting_for = (char *)0; #endif /* WAIT_DEBUG */ - p->busy = (int)port_entry; + p->busy = port_entry; if ((option & MACH_SEND_MSG) && !sent) { r = mach_msg(header, option, send_size, rcv_size, rcv_name, diff --git a/libthreads/cthread_internals.h b/libthreads/cthread_internals.h index a2f1598e..69e71180 100644 --- a/libthreads/cthread_internals.h +++ b/libthreads/cthread_internals.h @@ -26,6 +26,17 @@ /* * HISTORY * $Log: cthread_internals.h,v $ + * Revision 1.4 2001/03/31 23:01:01 roland + * 2001-03-31 Roland McGrath <roland@frob.com> + * + * * cthreads.h: Fix obsolescent #endif syntax. + * * cthread_internals.h: Likewise. + * * cancel-cond.c: Likewise. + * * stack.c: Likewise. + * * cthreads.c: Likewise. + * * cprocs.c: Likewise. + * * call.c: Likewise. + * * Revision 1.3 1995/08/29 14:49:20 mib * (cproc_block): Provide decl. * @@ -158,7 +169,7 @@ typedef struct cproc { #define CPROC_CONDWAIT 4 mach_port_t wired; /* is cthread wired to kernel thread */ - int busy; /* used with cthread_msg calls */ + void *busy; /* used with cthread_msg calls */ mach_msg_header_t msg; |