summaryrefslogtreecommitdiff
path: root/libports
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1995-06-26 20:51:39 +0000
committerMichael I. Bushnell <mib@gnu.org>1995-06-26 20:51:39 +0000
commit1b73aa61d03addd9db80dfd8ddc0a3c2c475c9fc (patch)
tree100b26a427a5a9b6b7897c58634b4b7dafc72147 /libports
parent2f4f3e5726ead26956c71c9c0b3180bbd54e7fdc (diff)
(ports_manage_port_operations_multithread/thread_function): Don't hold
lock while setting TIMEOUT.
Diffstat (limited to 'libports')
-rw-r--r--libports/manage-multithread.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libports/manage-multithread.c b/libports/manage-multithread.c
index 767d9ee7..f859feba 100644
--- a/libports/manage-multithread.c
+++ b/libports/manage-multithread.c
@@ -83,11 +83,12 @@ ports_manage_port_operations_multithread (struct port_bucket *bucket,
spin_lock (&lock);
totalthreads++;
nreqthreads++;
+ spin_unlock (&lock);
+
if (master)
timeout = global_timeout;
else
timeout = thread_timeout;
- spin_unlock (&lock);
startover: