Changeset 3936

Show
Ignore:
Timestamp:
11/04/06 14:38:39
Author:
jcorgan
Message:

Fixes ticket:95.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • gnuradio/trunk/gnuradio-core/src/lib/omnithread/nt.cc

    r3534 r3936  
    3333#include <stdlib.h> 
    3434#include <errno.h> 
     35#include <WinError.h> 
    3536#include <omnithread.h> 
    3637#include <process.h> 
     
    386387omni_semaphore::post(void) 
    387388{ 
    388     if (!ReleaseSemaphore(nt_sem, 1, NULL)) 
     389    if (!ReleaseSemaphore(nt_sem, 1, NULL) 
     390        && GetLastError() != ERROR_TOO_MANY_POSTS )     // MinGW fix by Don Ward 
    389391        throw omni_thread_fatal(GetLastError()); 
    390392}