Home
last modified time | relevance | path

Searched refs:npriorities (Results 1 – 2 of 2) sorted by relevance

/external/libevent/
Devent.c1240 event_priority_init(int npriorities) in event_priority_init() argument
1242 return event_base_priority_init(current_base, npriorities); in event_priority_init()
1246 event_base_priority_init(struct event_base *base, int npriorities) in event_base_priority_init() argument
1253 if (N_ACTIVE_CALLBACKS(base) || npriorities < 1 in event_base_priority_init()
1254 || npriorities >= EVENT_MAX_PRIORITIES) in event_base_priority_init()
1257 if (npriorities == base->nactivequeues) in event_base_priority_init()
1267 mm_calloc(npriorities, sizeof(struct evcallback_list)); in event_base_priority_init()
1272 base->nactivequeues = npriorities; in event_base_priority_init()
/external/libevent/test/
Dregress.c2176 test_priorities_impl(int npriorities) in test_priorities_impl() argument
2181 TT_BLATHER(("Testing Priorities %d: ", npriorities)); in test_priorities_impl()
2183 event_base_priority_init(global_base, npriorities); in test_priorities_impl()
2195 if (event_priority_set(&two.ev, npriorities - 1) == -1) { in test_priorities_impl()
2212 if (npriorities == 1) { in test_priorities_impl()
2215 } else if (npriorities == 2) { in test_priorities_impl()