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

Function appendMessage

xs/platforms/esp/xsHost.c:1203–1220  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1201extern void esp_schedule();
1202
1203static void appendMessage(modMessage msg)
1204{
1205 msg->next = NULL;
1206
1207 modCriticalSectionBegin();
1208 if (NULL == gMessageQueue) {
1209 gMessageQueue = msg;
1210 esp_schedule();
1211 }
1212 else {
1213 modMessage walker;
1214
1215 for (walker = gMessageQueue; NULL != walker->next; walker = walker->next)
1216 ;
1217 walker->next = msg;
1218 }
1219 modCriticalSectionEnd();
1220}
1221
1222int modMessagePostToMachine(xsMachine *the, uint8_t *message, uint16_t messageLength, modMessageDeliver callback, void *refcon)
1223{

Callers 2

modMessagePostToMachineFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected