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

Function ServiceEventDelete

modules/piu/PC/piuService.c:498–513  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

496}
497
498void ServiceEventDelete(ServiceEvent event)
499{
500 ServiceProxy proxy = (ServiceProxy)(((uint8_t*)event) - offsetof(ServiceProxyRecord, deletion));
501 ServiceThread thread = proxy->server;
502 //fprintf(stderr, "ServiceEventDelete thread %p proxy %p\n", thread, proxy);
503 ServiceProxy* address = &(thread->firstProxy);
504 while (*address) {
505 if (*address == proxy) {
506 *address = proxy->nextProxy;
507 c_free(proxy);
508 break;
509 }
510 address = &((*address)->nextProxy);
511 }
512 fxCollectGarbage(thread->the);
513}
514
515void ServiceEventInvoke(ServiceEvent event)
516{

Callers

nothing calls this directly

Calls 1

fxCollectGarbageFunction · 0.85

Tested by

no test coverage detected