diff options
author | Roland McGrath <roland@gnu.org> | 1995-11-22 03:04:18 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1995-11-22 03:04:18 +0000 |
commit | 1fe263577545a2d4e2dfbbbdc9d3131d2638f6c6 (patch) | |
tree | ab0bd8b069051ee766360a5bad27e87bff4382d7 | |
parent | 0ee6319c279ce3e5bddc73defca40a1f08ef2a8c (diff) |
Don't wire timeouts to zero.
-rw-r--r-- | libports/manage-multithread.c | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/libports/manage-multithread.c b/libports/manage-multithread.c index 2013de96..480113ef 100644 --- a/libports/manage-multithread.c +++ b/libports/manage-multithread.c @@ -1,4 +1,4 @@ -/* +/* Copyright (C) 1995 Free Software Foundation, Inc. Written by Michael I. Bushnell. @@ -37,7 +37,7 @@ ports_manage_port_operations_multithread (struct port_bucket *bucket, auto int thread_function (int); - int + int internal_demuxer (mach_msg_header_t *inp, mach_msg_header_t *outp) { @@ -52,7 +52,7 @@ ports_manage_port_operations_multithread (struct port_bucket *bucket, if (nreqthreads == 0) spawn = 1; spin_unlock (&lock); - + if (spawn) { spin_lock (&lock); @@ -80,7 +80,7 @@ ports_manage_port_operations_multithread (struct port_bucket *bucket, spin_lock (&lock); nreqthreads++; spin_unlock (&lock); - + return status; } @@ -89,7 +89,7 @@ ports_manage_port_operations_multithread (struct port_bucket *bucket, { int timeout; error_t err; - + if (wire_threads) thread_wire (wire_threads, hurd_thread_self (), 1); if (wire_cthreads) @@ -107,7 +107,7 @@ ports_manage_port_operations_multithread (struct port_bucket *bucket, timeout ? MACH_RCV_TIMEOUT : 0, timeout); while (err != MACH_RCV_TIMED_OUT); - + if (master) { spin_lock (&lock); @@ -131,14 +131,12 @@ ports_manage_port_operations_multithread (struct port_bucket *bucket, cleanly with cthreads cleverness yet. */ wire_cthreads = 1; - global_timeout = thread_timeout = 0; /* XXX */ - nreqthreads = 1; totalthreads = 1; thread_function (1); } - - - + + + |