[pypy-commit] stmgc default: Oups, use cond_broadcast instead of cond_signal here

arigo noreply at buildbot.pypy.org
Wed Mar 18 11:40:36 CET 2015


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r1737:7861b2a77263
Date: 2015-03-18 11:40 +0100
http://bitbucket.org/pypy/stmgc/changeset/7861b2a77263/

Log:	Oups, use cond_broadcast instead of cond_signal here

diff --git a/c7/stm/core.c b/c7/stm/core.c
--- a/c7/stm/core.c
+++ b/c7/stm/core.c
@@ -889,7 +889,8 @@
     /* send what is hopefully the correct signals */
     if (STM_PSEGMENT->transaction_state == TS_INEVITABLE) {
         /* wake up one thread in wait_for_end_of_inevitable_transaction() */
-        cond_signal(C_INEVITABLE);
+        STM_PSEGMENT->transaction_state = TS_NONE;
+        cond_broadcast(C_INEVITABLE);
         if (globally_unique_transaction)
             committed_globally_unique_transaction();
     }


More information about the pypy-commit mailing list