From 50fd18a60323b0bce9de5fb47e417f7be4010db7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20H=C3=BCbinette=20=28Hubbe=29?= <hubbe@hubbe.net> Date: Wed, 17 Sep 1997 06:04:14 -0700 Subject: [PATCH] fixed a typo Rev: src/threads.c:1.41 --- src/threads.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/threads.c b/src/threads.c index f3de94a9ff..6ea9d62e2f 100644 --- a/src/threads.c +++ b/src/threads.c @@ -1,5 +1,5 @@ #include "global.h" -RCSID("$Id: threads.c,v 1.40 1997/09/17 10:33:14 hubbe Exp $"); +RCSID("$Id: threads.c,v 1.41 1997/09/17 13:04:14 hubbe Exp $"); int num_threads = 1; int threads_disabled = 0; @@ -205,7 +205,7 @@ void f_mutex_lock(INT32 args) if(m->key) { - check_objects_to_destruct(); + destruct_objects_to_destruct(); if(m->key) { SWAP_OUT_CURRENT_THREAD(); @@ -250,6 +250,9 @@ void f_mutex_trylock(INT32 args) error("Recursive mutex locks!\n"); } } + if(m->key) + destruct_objects_to_destruct(); + if(!m->key) { OB2KEY(o)->mut=m; -- GitLab