[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] r3936 - gnuradio/trunk/gnuradio-core/src/lib/omnithrea
From: |
jcorgan |
Subject: |
[Commit-gnuradio] r3936 - gnuradio/trunk/gnuradio-core/src/lib/omnithread |
Date: |
Sat, 4 Nov 2006 14:38:39 -0700 (MST) |
Author: jcorgan
Date: 2006-11-04 14:38:39 -0700 (Sat, 04 Nov 2006)
New Revision: 3936
Modified:
gnuradio/trunk/gnuradio-core/src/lib/omnithread/nt.cc
Log:
Fixes ticket:95.
Modified: gnuradio/trunk/gnuradio-core/src/lib/omnithread/nt.cc
===================================================================
--- gnuradio/trunk/gnuradio-core/src/lib/omnithread/nt.cc 2006-11-04
21:26:29 UTC (rev 3935)
+++ gnuradio/trunk/gnuradio-core/src/lib/omnithread/nt.cc 2006-11-04
21:38:39 UTC (rev 3936)
@@ -32,6 +32,7 @@
#include <stdlib.h>
#include <errno.h>
+#include <WinError.h>
#include <omnithread.h>
#include <process.h>
@@ -385,7 +386,8 @@
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());
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Commit-gnuradio] r3936 - gnuradio/trunk/gnuradio-core/src/lib/omnithread,
jcorgan <=