MCPcopy Create free account
hub / github.com/ClassiCube/ClassiCube / Events_Pull

Function Events_Pull

src/Window_BeOS.cpp:72–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70}
71
72static cc_bool Events_Pull(CCEvent* event) {
73 cc_bool found = false;
74
75 Mutex_Lock(events_mutex);
76 {
77 if (events_count) {
78 *event = events_list[0];
79 for (int i = 1; i < events_count; i++) {
80 events_list[i - 1] = events_list[i];
81 }
82 events_count--;
83 found = true;
84 }
85 }
86 Mutex_Unlock(events_mutex);
87 return found;
88}
89
90// BApplication implementation
91class CC_BApp : public BApplication

Callers 1

Window_ProcessEventsFunction · 0.70

Calls 2

Mutex_LockFunction · 0.70
Mutex_UnlockFunction · 0.70

Tested by

no test coverage detected