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

Function pthread_setcanceltype

include/hamlib/winpthreads.h:751–761  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

749}
750
751static int pthread_setcanceltype(int type, int *oldtype)
752{
753 pthread_t t = pthread_self();
754
755 if ((type & PTHREAD_CANCEL_ASYNCHRONOUS) != type) return EINVAL;
756 if (oldtype) *oldtype = t->p_state & PTHREAD_CANCEL_ASYNCHRONOUS;
757 t->p_state &= ~PTHREAD_CANCEL_ASYNCHRONOUS;
758 t->p_state |= type;
759
760 return 0;
761}
762
763static int pthread_create_wrapper(void *args)
764{

Callers

nothing calls this directly

Calls 1

pthread_selfFunction · 0.85

Tested by

no test coverage detected