00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef __JackWinProcessSync__
00021 #define __JackWinProcessSync__
00022
00023 #include <windows.h>
00024
00025 namespace Jack
00026 {
00027
00032 class JackWinProcessSync
00033 {
00034
00035 private:
00036
00037 HANDLE fEvent;
00038
00039 public:
00040
00041 JackWinProcessSync()
00042 {
00043 fEvent = (HANDLE)CreateEvent(NULL, FALSE, FALSE, NULL);
00044 }
00045 ~JackWinProcessSync()
00046 {
00047 CloseHandle(fEvent);
00048 }
00049
00050 bool Allocate(const char* name)
00051 {
00052 return true;
00053 }
00054
00055 bool Connect(const char* name)
00056 {
00057 return true;
00058 }
00059
00060 void Destroy()
00061 {}
00062
00063 bool TimedWait(long usec);
00064
00065 void Wait();
00066
00067 void Signal()
00068 {
00069 SetEvent(fEvent);
00070 }
00071
00072 void SignalAll()
00073 {
00074 SetEvent(fEvent);
00075 }
00076
00077 };
00078
00079 }
00080
00081 #endif
00082