mutex implemented for callback to racket.

Needs to be serialized and protected.
This commit is contained in:
2026-04-20 18:31:21 +02:00
parent 2b107f8f73
commit b4a4b2f554

View File

@@ -313,6 +313,12 @@ void rkt_webview_cleanup()
handler->verbose = true;
handler->event_queue->enqueue(EVT_NULL);
// I finally found out that this second is not important.
// The call to racket must be in a mutex in order to make sure
// this side of the library isn't cleaned before the asynchronous
// racket call returns. We need to serialize it. This has now
// been done using the evt_cb_mutex.
//sleep_ms(1000); // Why is this second so important?
// I just don't get why the evt_guard thread is blocking and getting core dumped
// on the thread join, if this second is not given