Searched refs:p (Results 1 – 6 of 6) sorted by relevance
27 struct __pthread *p; in pthread_cancel() local29 p = __pthread_getid (t); in pthread_cancel()30 if (p == NULL) in pthread_cancel()33 __pthread_mutex_lock (&p->cancel_lock); in pthread_cancel()34 if (p->cancel_pending) in pthread_cancel()36 __pthread_mutex_unlock (&p->cancel_lock); in pthread_cancel()40 p->cancel_pending = 1; in pthread_cancel()42 if (p->cancel_state != PTHREAD_CANCEL_ENABLE) in pthread_cancel()50 err = __pthread_do_cancel (p); in pthread_cancel()53 if (p->cancel_hook != NULL) in pthread_cancel()[all …]
25 struct __pthread *p = _pthread_self (); in __pthread_enable_asynccancel() local28 __pthread_mutex_lock (&p->cancel_lock); in __pthread_enable_asynccancel()29 oldtype = p->cancel_type; in __pthread_enable_asynccancel()30 p->cancel_type = PTHREAD_CANCEL_ASYNCHRONOUS; in __pthread_enable_asynccancel()31 __pthread_mutex_unlock (&p->cancel_lock); in __pthread_enable_asynccancel()40 struct __pthread *p = _pthread_self (); in __pthread_disable_asynccancel() local42 __pthread_mutex_lock (&p->cancel_lock); in __pthread_disable_asynccancel()43 p->cancel_type = oldtype; in __pthread_disable_asynccancel()44 __pthread_mutex_unlock (&p->cancel_lock); in __pthread_disable_asynccancel()
27 struct __pthread *p = _pthread_self (); in __pthread_testcancel() local30 __pthread_mutex_lock (&p->cancel_lock); in __pthread_testcancel()31 cancelled = (p->cancel_state == PTHREAD_CANCEL_ENABLE) && p->cancel_pending; in __pthread_testcancel()32 __pthread_mutex_unlock (&p->cancel_lock); in __pthread_testcancel()
26 struct __pthread *p = _pthread_self (); in __pthread_setcancelstate() local37 __pthread_mutex_lock (&p->cancel_lock); in __pthread_setcancelstate()39 *oldstate = p->cancel_state; in __pthread_setcancelstate()40 p->cancel_state = state; in __pthread_setcancelstate()41 __pthread_mutex_unlock (&p->cancel_lock); in __pthread_setcancelstate()
26 struct __pthread *p = _pthread_self (); in __pthread_setcanceltype() local37 __pthread_mutex_lock (&p->cancel_lock); in __pthread_setcanceltype()39 *oldtype = p->cancel_type; in __pthread_setcanceltype()40 p->cancel_type = type; in __pthread_setcanceltype()41 __pthread_mutex_unlock (&p->cancel_lock); in __pthread_setcanceltype()
34 void *p; in main() local59 TEST (stackaddr, &p, p); in main()64 err = pthread_attr_getstack (&attr, &p, &sz); in main()67 err = pthread_attr_setstack (&attr, p, sz); in main()
Completed in 11 milliseconds