| 58 | } |
| 59 | |
| 60 | static void Events_Push(const CCEvent* event) { |
| 61 | Mutex_Lock(events_mutex); |
| 62 | { |
| 63 | if (events_count >= events_capacity) { |
| 64 | Utils_Resize((void**)&events_list, &events_capacity, |
| 65 | sizeof(CCEvent), EVENTS_DEFAULT_MAX, 20); |
| 66 | } |
| 67 | events_list[events_count++] = *event; |
| 68 | } |
| 69 | Mutex_Unlock(events_mutex); |
| 70 | } |
| 71 | |
| 72 | static cc_bool Events_Pull(CCEvent* event) { |
| 73 | cc_bool found = false; |
no test coverage detected