From ac2cd315ef82b97d6e43ade7650dd6b4f5ac35db Mon Sep 17 00:00:00 2001 From: frosch Date: Tue, 18 Feb 2014 17:58:46 +0000 Subject: (svn r26353) -Fix (r26349) [FS#5917]: Win32 and OS/2 ThreadMutex::WaitForSignal always asserted. --- src/thread/thread_os2.cpp | 3 --- src/thread/thread_win32.cpp | 3 --- 2 files changed, 6 deletions(-) (limited to 'src') diff --git a/src/thread/thread_os2.cpp b/src/thread/thread_os2.cpp index a6aa944b6..d93fc0c71 100644 --- a/src/thread/thread_os2.cpp +++ b/src/thread/thread_os2.cpp @@ -128,12 +128,9 @@ public: /* virtual */ void WaitForSignal() { assert(this->recursive_count == 1); // Do we need to call Begin/EndCritical multiple times otherwise? - uint old_recursive_count = this->recursive_count; - this->recursive_count = 0; this->EndCritical(); DosWaitEventSem(event, SEM_INDEFINITE_WAIT); this->BeginCritical(); - this->recursive_count = old_recursive_count; } /* virtual */ void SendSignal() diff --git a/src/thread/thread_win32.cpp b/src/thread/thread_win32.cpp index 6f9172f2f..484cc5513 100644 --- a/src/thread/thread_win32.cpp +++ b/src/thread/thread_win32.cpp @@ -141,12 +141,9 @@ public: /* virtual */ void WaitForSignal() { assert(this->recursive_count == 1); // Do we need to call Begin/EndCritical multiple times otherwise? - uint old_recursive_count = this->recursive_count; - this->recursive_count = 0; this->EndCritical(); WaitForSingleObject(this->event, INFINITE); this->BeginCritical(); - this->recursive_count = old_recursive_count; } /* virtual */ void SendSignal() -- cgit v1.2.3-70-g09d2