Home
last modified time | relevance | path

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

/external/libevent/
Devent.c1234 event_priority_init(int npriorities) in event_priority_init() argument
1236 return event_base_priority_init(current_base, npriorities); in event_priority_init()
1240 event_base_priority_init(struct event_base *base, int npriorities) in event_base_priority_init() argument
1247 if (N_ACTIVE_CALLBACKS(base) || npriorities < 1 in event_base_priority_init()
1248 || npriorities >= EVENT_MAX_PRIORITIES) in event_base_priority_init()
1251 if (npriorities == base->nactivequeues) in event_base_priority_init()
1261 mm_calloc(npriorities, sizeof(struct evcallback_list)); in event_base_priority_init()
1266 base->nactivequeues = npriorities; in event_base_priority_init()
/external/libevent/test/
Dregress.c2223 test_priorities_impl(int npriorities) in test_priorities_impl() argument
2228 TT_BLATHER(("Testing Priorities %d: ", npriorities)); in test_priorities_impl()
2230 event_base_priority_init(global_base, npriorities); in test_priorities_impl()
2242 if (event_priority_set(&two.ev, npriorities - 1) == -1) { in test_priorities_impl()
2259 if (npriorities == 1) { in test_priorities_impl()
2262 } else if (npriorities == 2) { in test_priorities_impl()