| 496 | } |
| 497 | |
| 498 | void 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 | |
| 515 | void ServiceEventInvoke(ServiceEvent event) |
| 516 | { |
nothing calls this directly
no test coverage detected