summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libthreads/cprocs.c9
-rw-r--r--libthreads/cthread_internals.h13
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;