summaryrefslogtreecommitdiff
path: root/gnuradio-core
diff options
context:
space:
mode:
authorjcorgan2006-11-04 21:38:39 +0000
committerjcorgan2006-11-04 21:38:39 +0000
commitc6eaa53c3739ea2fb39a088e50bfa142b1cdb136 (patch)
tree35577dfd906c57230631b98efe47605cd8a00c9b /gnuradio-core
parent5a2864573c870ad6f3ff3dc818b3603ff9340618 (diff)
downloadgnuradio-c6eaa53c3739ea2fb39a088e50bfa142b1cdb136.tar.gz
gnuradio-c6eaa53c3739ea2fb39a088e50bfa142b1cdb136.tar.bz2
gnuradio-c6eaa53c3739ea2fb39a088e50bfa142b1cdb136.zip
Fixes ticket:95.
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@3936 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'gnuradio-core')
-rw-r--r--gnuradio-core/src/lib/omnithread/nt.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/gnuradio-core/src/lib/omnithread/nt.cc b/gnuradio-core/src/lib/omnithread/nt.cc
index 644501a35..03398aaa7 100644
--- a/gnuradio-core/src/lib/omnithread/nt.cc
+++ b/gnuradio-core/src/lib/omnithread/nt.cc
@@ -32,6 +32,7 @@
#include <stdlib.h>
#include <errno.h>
+#include <WinError.h>
#include <omnithread.h>
#include <process.h>
@@ -385,7 +386,8 @@ omni_semaphore::trywait(void)
void
omni_semaphore::post(void)
{
- if (!ReleaseSemaphore(nt_sem, 1, NULL))
+ if (!ReleaseSemaphore(nt_sem, 1, NULL)
+ && GetLastError() != ERROR_TOO_MANY_POSTS ) // MinGW fix by Don Ward
throw omni_thread_fatal(GetLastError());
}