Searched refs:npriorities (Results 1 – 5 of 5) sorted by relevance
| /freebsd-13-stable/contrib/pf/libevent/ |
| HD | event.c | 237 event_priority_init(int npriorities) in event_priority_init() argument 239 return event_base_priority_init(current_base, npriorities); in event_priority_init() 243 event_base_priority_init(struct event_base *base, int npriorities) in event_base_priority_init() argument 250 if (base->nactivequeues && npriorities != base->nactivequeues) { in event_base_priority_init() 258 base->nactivequeues = npriorities; in event_base_priority_init() 260 npriorities * sizeof(struct event_list *)); in event_base_priority_init()
|
| /freebsd-13-stable/contrib/ntp/sntp/libevent/ |
| HD | event.c | 1234 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()
|
| /freebsd-13-stable/contrib/libevent/ |
| HD | event.c | 1234 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()
|
| /freebsd-13-stable/contrib/libevent/test/ |
| HD | regress.c | 2223 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()
|
| /freebsd-13-stable/contrib/ntp/sntp/libevent/test/ |
| HD | regress.c | 2223 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()
|