Home
last modified time | relevance | path

Searched refs:p (Results 1 – 6 of 6) sorted by relevance

/htl/
A Dpt-cancel.c27 struct __pthread *p; in pthread_cancel() local
29 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 …]
A Dcancellation.c25 struct __pthread *p = _pthread_self (); in __pthread_enable_asynccancel() local
28 __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() local
42 __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()
A Dpt-testcancel.c27 struct __pthread *p = _pthread_self (); in __pthread_testcancel() local
30 __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()
A Dpt-setcancelstate.c26 struct __pthread *p = _pthread_self (); in __pthread_setcancelstate() local
37 __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()
A Dpt-setcanceltype.c26 struct __pthread *p = _pthread_self (); in __pthread_setcanceltype() local
37 __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()
/htl/tests/
A Dtest-3.c34 void *p; in main() local
59 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