Searched refs:npriorities (Results 1 – 2 of 2) sorted by relevance
1240 event_priority_init(int npriorities) in event_priority_init() argument1242 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() argument1253 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()
2176 test_priorities_impl(int npriorities) in test_priorities_impl() argument2181 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()