aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--main.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/main.c b/main.c
index f1fd83c..2965ec7 100644
--- a/main.c
+++ b/main.c
@@ -53,14 +53,12 @@ void *thread_party(void *t)
{
long tid = (long)t;
- pthread_mutex_lock(&party->mutex);
eat(tid);
if (tid % 2 == 1)
sleep(1);
cleanup(tid);
- pthread_mutex_unlock(&party->mutex);
pthread_exit(NULL);
}