| 1429 | } |
| 1430 | |
| 1431 | auto UE4SSProgram::queue_event(EventCallable callable, void* data) -> void |
| 1432 | { |
| 1433 | if (!can_process_events()) |
| 1434 | { |
| 1435 | return; |
| 1436 | } |
| 1437 | std::lock_guard<std::mutex> guard(m_event_queue_mutex); |
| 1438 | m_queued_events.emplace_back(Event{callable, data}); |
| 1439 | } |
| 1440 | |
| 1441 | auto UE4SSProgram::is_queue_empty() -> bool |
| 1442 | { |