summaryrefslogtreecommitdiff
path: root/concurrency.c
diff options
context:
space:
mode:
Diffstat (limited to 'concurrency.c')
-rw-r--r--concurrency.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/concurrency.c b/concurrency.c
index 03b4a68..139883c 100644
--- a/concurrency.c
+++ b/concurrency.c
@@ -113,9 +113,7 @@ messagerecv(Function match, int timeout)
int timeoutid = 0;
if(timeout > 0){
td->timeout = timeout;
- qunlock(&td->lock);
timeoutid = threadcreate(recvtimeout, nil, STACKSIZE);
- qlock(&td->lock);
}
td->timedout = 0; /* clear the timeout bit */
while(td->mail == nil && !td->timedout){