feat(event): partially implement SynthesizeDestroy

This commit is contained in:
fallenoak 2026-01-02 22:06:19 -06:00
parent 96b6753c6f
commit f9a9b0a45a
No known key found for this signature in database
GPG Key ID: 7628F8E61AEA070D

View File

@ -4,6 +4,18 @@
#include <common/Time.hpp> #include <common/Time.hpp>
void SynthesizeDestroy(EvtContext* context) { 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 // TODO
exit(0); exit(0);
} }