summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/thread/thread_os2.cpp3
-rw-r--r--src/thread/thread_win32.cpp3
2 files changed, 0 insertions, 6 deletions
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()