[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] r3937 - gnuradio/branches/releases/3.0/gnuradio-core/s
From: |
jcorgan |
Subject: |
[Commit-gnuradio] r3937 - gnuradio/branches/releases/3.0/gnuradio-core/src/lib/omnithread |
Date: |
Sat, 4 Nov 2006 14:40:13 -0700 (MST) |
Author: jcorgan
Date: 2006-11-04 14:40:13 -0700 (Sat, 04 Nov 2006)
New Revision: 3937
Modified:
gnuradio/branches/releases/3.0/gnuradio-core/src/lib/omnithread/nt.cc
Log:
Applied changeset r3936 on trunk to release branch.
Modified: gnuradio/branches/releases/3.0/gnuradio-core/src/lib/omnithread/nt.cc
===================================================================
--- gnuradio/branches/releases/3.0/gnuradio-core/src/lib/omnithread/nt.cc
2006-11-04 21:38:39 UTC (rev 3936)
+++ gnuradio/branches/releases/3.0/gnuradio-core/src/lib/omnithread/nt.cc
2006-11-04 21:40:13 UTC (rev 3937)
@@ -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] r3937 - gnuradio/branches/releases/3.0/gnuradio-core/src/lib/omnithread,
jcorgan <=