From d3ef56684fd202c15842c6bd3b39ec9be6eae9b7 Mon Sep 17 00:00:00 2001 From: Drago Goricanec Date: Tue, 8 Sep 1998 02:36:09 +0900 Subject: Thread::cond_wait bug in 5.005.51 causes deadlock Message-Id: <199809070836.RAA14631@raptor.otsd.ts.fujitsu.co.jp> p4raw-id: //depot/perl@1839 --- ext/Thread/Thread.xs | 1 + 1 file changed, 1 insertion(+) (limited to 'ext/Thread/Thread.xs') diff --git a/ext/Thread/Thread.xs b/ext/Thread/Thread.xs index 48f8aa03fc..a4bff69a9b 100644 --- a/ext/Thread/Thread.xs +++ b/ext/Thread/Thread.xs @@ -483,6 +483,7 @@ CODE: croak("cond_wait for lock that we don't own\n"); } MgOWNER(mg) = 0; + COND_SIGNAL(MgOWNERCONDP(mg)); COND_WAIT(MgCONDP(mg), MgMUTEXP(mg)); while (MgOWNER(mg)) COND_WAIT(MgOWNERCONDP(mg), MgMUTEXP(mg)); -- cgit v1.2.1