mirror of
https://github.com/whoahq/whoa.git
synced 2026-11-07 23:29:54 +03:00
feat(event): partially implement SynthesizeDestroy
This commit is contained in:
1 file changed
+12
@@ -4,6 +4,18 @@
|
||||
#include <common/Time.hpp>
|
||||
|
||||
void SynthesizeDestroy(EvtContext* context) {
|
||||
// TODO
|
||||
|
||||
IEvtQueueDispatch(context, EVENT_ID_CLOSE, nullptr);
|
||||
|
||||
context->m_critsect.Enter();
|
||||
context->m_schedState = EvtContext::SCHEDSTATE_DESTROYED;
|
||||
context->m_critsect.Leave();
|
||||
|
||||
IEvtQueueDispatchAll(context);
|
||||
|
||||
IEvtQueueDispatch(context, EVENT_ID_DESTROY, nullptr);
|
||||
|
||||
// TODO
|
||||
exit(0);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user