Changeset 8800


Ignore:
Timestamp:
Mar 17, 2008, 7:00:00 AM (12 years ago)
Author:
gb
Message:

Flesh out some USE_WINDOWS_SEMAPHORES stuff.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/win64/lisp-kernel/Threads.h

    r8547 r8800  
    8989
    9090typedef void * SEMAPHORE;
    91 #define SEM_WAIT(s)
    92 #define SEM_RAISE(s)
    93 #define SEM_BROADCAST(s, count)
    94 #define SEM_TIMEDWAIT(s,t)
     91#define SEM_WAIT(s) WaitOnSingleObject(s,INFINITE)
     92#define SEM_RAISE(s) ReleaseSemaphore(s, 1L, NULL)
     93#define SEM_BROADCAST(s, count) do {while(count) {SEM_RAISE(s);(count)--;}}while(0)
     94#define SEM_TIMEDWAIT(s,t) WaitOnSingleObject(s,t)
    9595
    9696#endif
Note: See TracChangeset for help on using the changeset viewer.