From 54fca2a55b88b6130ceceaa4b493e022ad3d4d72 Mon Sep 17 00:00:00 2001 From: Peter Mikkelsen Date: Mon, 16 May 2022 12:15:02 +0000 Subject: No need to unlock/lock there --- concurrency.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'concurrency.c') 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){ -- cgit v1.2.3