Lines Matching refs:prepare
100 Prioq *prepare; member
198 assert(x->prepare); in prepare_prioq_compare()
199 assert(y->prepare); in prepare_prioq_compare()
346 prioq_free(e->prepare); in event_free()
772 if (s->prepare) in event_source_pp_prioq_reshuffle()
773 prioq_reshuffle(s->event->prepare, s, &s->prepare_index); in event_source_pp_prioq_reshuffle()
930 if (s->prepare) in source_disconnect()
931 prioq_remove(s->event->prepare, s, &s->prepare_index); in source_disconnect()
2829 if (s->prepare == callback) in sd_event_source_set_prepare()
2832 if (callback && s->prepare) { in sd_event_source_set_prepare()
2833 s->prepare = callback; in sd_event_source_set_prepare()
2837 r = prioq_ensure_allocated(&s->event->prepare, prepare_prioq_compare); in sd_event_source_set_prepare()
2841 s->prepare = callback; in sd_event_source_set_prepare()
2844 r = prioq_put(s->event->prepare, s, &s->prepare_index); in sd_event_source_set_prepare()
2848 prioq_remove(s->event->prepare, s, &s->prepare_index); in sd_event_source_set_prepare()
3700 s = prioq_peek(e->prepare); in event_prepare()
3705 r = prioq_reshuffle(e->prepare, s, &s->prepare_index); in event_prepare()
3709 assert(s->prepare); in event_prepare()
3712 r = s->prepare(s, s->userdata); in event_prepare()