X-Git-Url: https://git.gag.com/?a=blobdiff_plain;ds=sidebyside;f=gnuradio-core%2Fsrc%2Flib%2Fomnithread%2Fnt.cc;h=3853f010809292279de93a7919d18e6d88a5355a;hb=0cfd4875e519e2b1ee05d074f72ec67391ed13bf;hp=644501a357a9c0599caf68e1304600b769fa654c;hpb=18a684bf3dc144c48fc4cc6cc72f5070febd8074;p=debian%2Fgnuradio diff --git a/gnuradio-core/src/lib/omnithread/nt.cc b/gnuradio-core/src/lib/omnithread/nt.cc index 644501a3..3853f010 100644 --- a/gnuradio-core/src/lib/omnithread/nt.cc +++ b/gnuradio-core/src/lib/omnithread/nt.cc @@ -32,6 +32,7 @@ #include #include +#include #include #include @@ -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--see ticket:95 in trac throw omni_thread_fatal(GetLastError()); }