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

Function tcpTrigger

modules/io/socket/lwip/tcp.c:594–610  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

592}
593
594void tcpTrigger(TCP tcp, uint8_t trigger)
595{
596#if TCP_ATOMICS
597 uint8_t triggered = modAtomicsFetchOr(&tcp->triggered, trigger);
598#else
599 uint8_t triggered;
600
601 builtinCriticalSectionBegin();
602 triggered = tcp->triggered;
603 tcp->triggered |= trigger;
604 builtinCriticalSectionEnd();
605#endif
606 if (!triggered) {
607 tcpHold(tcp);
608 modMessagePostToMachine(tcp->the, NULL, 0, tcpDeliver, tcp);
609 }
610}
611
612void xs_tcp_mark(xsMachine* the, void* it, xsMarkRoot markRoot)
613{

Callers 7

xs_tcp_constructorFunction · 0.70
xs_tcp_readFunction · 0.70
xs_tcp_writeFunction · 0.70
tcpConnectFunction · 0.70
tcpErrorFunction · 0.70
tcpReceiveFunction · 0.70
tcpSentFunction · 0.70

Calls 2

tcpHoldFunction · 0.70
modMessagePostToMachineFunction · 0.50

Tested by

no test coverage detected