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

Function pthread_testcancel

include/hamlib/winpthreads.h:590–601  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

588}
589
590static void pthread_testcancel(void)
591{
592 if (_pthread_cancelling)
593 {
594 pthread_t t = pthread_self();
595
596 if (t->cancelled && (t->p_state & PTHREAD_CANCEL_ENABLE))
597 {
598 _pthread_invoke_cancel();
599 }
600 }
601}
602
603
604static int pthread_cancel(pthread_t t)

Callers 7

pthread_rwlock_rdlockFunction · 0.85
pthread_rwlock_wrlockFunction · 0.85
pthread_joinFunction · 0.85
pthread_cond_waitFunction · 0.85
pthread_cond_timedwaitFunction · 0.85

Calls 2

pthread_selfFunction · 0.85
_pthread_invoke_cancelFunction · 0.85

Tested by

no test coverage detected