[glib] gthread-win32: trivial condition change
- From: Ryan Lortie <ryanl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] gthread-win32: trivial condition change
- Date: Wed, 21 Sep 2011 20:21:49 +0000 (UTC)
commit 9f42e3be1b7b9e7588eb84e21c321dfbde0a6f9a
Author: Ryan Lortie <desrt desrt ca>
Date: Tue Sep 20 00:05:34 2011 -0400
gthread-win32: trivial condition change
Make another do-nothing change to the SRWLock emulation.
glib/gthread-win32.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/glib/gthread-win32.c b/glib/gthread-win32.c
index 1bc6364..89d8f11 100644
--- a/glib/gthread-win32.c
+++ b/glib/gthread-win32.c
@@ -585,7 +585,10 @@ g_thread_xp_TryAcquireSRWLockExclusive (gpointer mutex)
{
GThreadSRWLock *lock = g_thread_xp_get_srwlock (mutex);
- return TryEnterCriticalSection (&lock->writer_lock);
+ if (!TryEnterCriticalSection (&lock->writer_lock))
+ return FALSE;
+
+ return TRUE;
}
static void __stdcall
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]