MCPcopy Create free account
hub / github.com/VirtualGL/virtualgl / Event

Class Event

include/Mutex.h:28–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26namespace util
27{
28 class Event
29 {
30 public:
31
32 Event(void);
33 ~Event(void);
34 void wait(void);
35 void signal(void);
36 bool isLocked(void);
37
38 private:
39
40 #ifdef _WIN32
41 HANDLE event;
42 #else
43 pthread_mutex_t mutex;
44 pthread_cond_t cond;
45 bool ready, deadYet;
46 #endif
47 };
48
49
50 // Critical section (recursive mutex)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected