[pypy-commit] pypy default: Baaaah. Thanks zseil.
arigo
noreply at buildbot.pypy.org
Sat Oct 15 15:50:39 CEST 2011
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r48074:759db9b281eb
Date: 2011-10-15 15:50 +0200
http://bitbucket.org/pypy/pypy/changeset/759db9b281eb/
Log: Baaaah. Thanks zseil.
diff --git a/pypy/translator/c/src/thread_nt.h b/pypy/translator/c/src/thread_nt.h
--- a/pypy/translator/c/src/thread_nt.h
+++ b/pypy/translator/c/src/thread_nt.h
@@ -245,7 +245,7 @@
if (pending_acquires <= 0)
return 0;
InterlockedIncrement(&pending_acquires);
- PulseEvent(&cond_gil);
+ PulseEvent(cond_gil);
/* hack: the three following lines do a pthread_cond_wait(), and
normally specifying a timeout of INFINITE would be fine. But the
@@ -253,7 +253,7 @@
(small) risk that PulseEvent misses the WaitForSingleObject().
In this case the process will just sleep a few milliseconds. */
LeaveCriticalSection(&mutex_gil);
- WaitForSingleObject(&cond_gil, 15);
+ WaitForSingleObject(cond_gil, 15);
EnterCriticalSection(&mutex_gil);
InterlockedDecrement(&pending_acquires);
@@ -263,7 +263,7 @@
void RPyGilRelease(void)
{
LeaveCriticalSection(&mutex_gil);
- PulseEvent(&cond_gil);
+ PulseEvent(cond_gil);
}
void RPyGilAcquire(void)
More information about the pypy-commit
mailing list