From: Artur Bergman Date: Sat, 27 Apr 2002 11:46:53 +0000 (+0000) Subject: Saving locks after we set it to 0 was kind of pointless. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=39f33d92fc728b977d8cfe3563fd57f4046e5401;p=p5sagit%2Fp5-mst-13.2.git Saving locks after we set it to 0 was kind of pointless. Hunting down fixes in cond_* functions. p4raw-id: //depot/perl@16208 --- diff --git a/ext/threads/shared/shared.xs b/ext/threads/shared/shared.xs index 2680bbf..3d339e4 100644 --- a/ext/threads/shared/shared.xs +++ b/ext/threads/shared/shared.xs @@ -980,7 +980,8 @@ cond_wait_enabled(SV *ref) /* Stealing the members of the lock object worries me - NI-S */ MUTEX_LOCK(&shared->lock.mutex); shared->lock.owner = NULL; - locks = shared->lock.locks = 0; + locks = shared->lock.locks; + shared->lock.locks = 0; COND_WAIT(&shared->user_cond, &shared->lock.mutex); shared->lock.owner = aTHX; shared->lock.locks = locks;