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

Function xs_serial_write_aux

modules/io/serial/win/serial.c:377–392  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

375}
376
377void xs_serial_write_aux(void* machine, xsSerial s)
378{
379 if (s->hasOnWritable) {
380// EnterCriticalSection(&s->writeCritical);
381 if (!s->writeJob) {
382 xsSerialJob writeJob = c_calloc(sizeof(xsSerialJobRecord), 1);
383 if (writeJob == NULL)
384 return;
385 writeJob->callback = xs_serial_write_callback;
386 writeJob->serial = s;
387 fxQueueWorkerJob(s->the, writeJob);
388 s->writeJob = writeJob;
389 }
390// LeaveCriticalSection(&s->writeCritical);
391 }
392}
393
394void xs_serial_write_callback(void* machine, void* it)
395{

Callers 2

serial.cFile · 0.85
xs_serial_writeFunction · 0.85

Calls 1

fxQueueWorkerJobFunction · 0.50

Tested by

no test coverage detected