mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 00:02:45 +03:00
feat(event): partially implement SynthesizeDestroy
This commit is contained in:
parent
96b6753c6f
commit
f9a9b0a45a
@ -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);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user