From e4293fbab0c18ad984437a95fbe9c859f03aa899 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20H=C3=BCbinette=20=28Hubbe=29?= <hubbe@hubbe.net> Date: Thu, 17 Apr 1997 18:29:28 -0700 Subject: [PATCH] bug in Mutex->trylock fixed Rev: src/threads.c:1.22 --- src/threads.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/threads.c b/src/threads.c index 2a4c9d8681..897549ae3e 100644 --- a/src/threads.c +++ b/src/threads.c @@ -1,5 +1,5 @@ #include "global.h" -RCSID("$Id: threads.c,v 1.21 1997/04/16 03:09:18 hubbe Exp $"); +RCSID("$Id: threads.c,v 1.22 1997/04/18 01:29:28 hubbe Exp $"); int num_threads = 1; int threads_disabled = 0; @@ -201,7 +201,7 @@ void f_mutex_trylock(INT32 args) THREADS_ALLOW(); if(!m->key) { - OB2KEY(o)->mut=THIS_MUTEX; + OB2KEY(o)->mut=m; m->key=o; i=1; } -- GitLab