Change 16208 by sky@sky-lab on 2002/04/27 11:46:53

        Saving locks after we set it to 0 was kind of pointless.
        Hunting down fixes in cond_* functions.

Affected files ...

.... //depot/perl/ext/threads/shared/shared.xs#23 edit

Differences ...

==== //depot/perl/ext/threads/shared/shared.xs#23 (text) ====
Index: perl/ext/threads/shared/shared.xs
--- perl/ext/threads/shared/shared.xs.~1~       Sat Apr 27 06:00:05 2002
+++ perl/ext/threads/shared/shared.xs   Sat Apr 27 06:00:05 2002
@@ -980,7 +980,8 @@
        /* 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;
End of Patch.

Reply via email to