Lines Matching refs:evp
26 struct sigevent evp; member
48 if (timer->evp.sigev_notify == SIGEV_NONE) { in zephyr_timer_wrapper()
53 if (timer->evp.sigev_notify_function == NULL) { in zephyr_timer_wrapper()
58 LOG_DBG("calling sigev_notify_function %p", timer->evp.sigev_notify_function); in zephyr_timer_wrapper()
59 (timer->evp.sigev_notify_function)(timer->evp.sigev_value); in zephyr_timer_wrapper()
70 if (timer->evp.sigev_notify_attributes == NULL) { in zephyr_thread_wrapper()
84 if (timer->evp.sigev_notify_function == NULL) { in zephyr_thread_wrapper()
89 LOG_DBG("calling sigev_notify_function %p", timer->evp.sigev_notify_function); in zephyr_thread_wrapper()
90 (timer->evp.sigev_notify_function)(timer->evp.sigev_value); in zephyr_thread_wrapper()
112 int timer_create(clockid_t clockid, struct sigevent *evp, timer_t *timerid) in timer_create() argument
119 if (evp == NULL || timerid == NULL) { in timer_create()
131 timer->evp = *evp; in timer_create()
132 evp = &timer->evp; in timer_create()
134 switch (evp->sigev_notify) { in timer_create()
142 if (evp->sigev_notify_attributes != NULL) { in timer_create()
143 ret = pthread_attr_getdetachstate(evp->sigev_notify_attributes, in timer_create()
153 ret = pthread_attr_setdetachstate(evp->sigev_notify_attributes, in timer_create()
172 ret = pthread_create(&timer->thread, evp->sigev_notify_attributes, in timer_create()
336 if (timer->evp.sigev_notify == SIGEV_THREAD) { in timer_delete()