From 741613f816796b21abdc3b140ac9131419fd99de Mon Sep 17 00:00:00 2001 From: deva Date: Sat, 30 Apr 2005 20:42:15 +0000 Subject: *** empty log message *** --- src/queue.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/queue.h b/src/queue.h index 6b143fd..1f8a80f 100644 --- a/src/queue.h +++ b/src/queue.h @@ -219,9 +219,11 @@ void Queue::plength() template void Queue::lock() { + pthread_mutex_lock(&mutex); fprintf(stderr, "Lock this motherfucker..."); fflush(stderr); locked = true; fprintf(stderr, "done\n"); fflush(stderr); + pthread_mutex_unlock(&mutex); } /** @@ -230,9 +232,11 @@ void Queue::lock() template void Queue::unlock() { + pthread_mutex_lock(&mutex); fprintf(stderr, "Unlock this motherfucker..."); fflush(stderr); locked = false; fprintf(stderr, "done\n"); fflush(stderr); + pthread_mutex_unlock(&mutex); } #endif -- cgit v1.2.3