fix multiple main thread actors not working

This commit is contained in:
2025-06-06 21:26:29 -05:00
parent 1a61ae6f77
commit 9f6d27fb3c
6 changed files with 45 additions and 28 deletions

View File

@@ -174,6 +174,8 @@ JSC_CCALL(actor_clock,
l.callback = JS_DupValue(js, argv[0]);
arrput(actor->letters, l);
SDL_UnlockMutex(actor->msg_mutex);
printf("actor %s clocked\n", actor->id);
set_actor_state(actor);
)
static const JSCFunctionListEntry js_actor_funcs[] = {