| 70 | } |
| 71 | |
| 72 | static 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 |
| 91 | class CC_BApp : public BApplication |
no test coverage detected