MCPcopy Create free account
hub / github.com/Hamlib/Hamlib / _pthread_invoke_cancel

Function _pthread_invoke_cancel

include/hamlib/winpthreads.h:575–588  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

573
574
575static void _pthread_invoke_cancel(void)
576{
577 _pthread_cleanup *pcup;
578
579 _InterlockedDecrement(&_pthread_cancelling);
580
581 /* Call cancel queue */
582 for (pcup = pthread_self()->clean; pcup; pcup = pcup->next)
583 {
584 pcup->func(pcup->arg);
585 }
586 void *p = NULL;
587 pthread_exit(p);
588}
589
590static void pthread_testcancel(void)
591{

Callers 1

pthread_testcancelFunction · 0.85

Calls 2

pthread_selfFunction · 0.85
pthread_exitFunction · 0.85

Tested by

no test coverage detected