MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / xs_worker_postfromworker

Function xs_worker_postfromworker

modules/base/worker/modWorker.c:407–417  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

405}
406
407void xs_worker_postfromworker(xsMachine *the)
408{
409 modWorker worker = xsmcGetHostDataValidate(xsThis, (void *)xs_emptyworker_destructor);
410 char *message;
411
412 if (worker->closing)
413 xsUnknownError("worker closing");
414
415 message = xsMarshall(xsArg(0));
416 doModMessagePostToMachine(the, worker->parent, message, (modMessageDeliver)workerDeliverMarshall, worker);
417}
418
419void xs_worker_close(xsMachine *the)
420{

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected