mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-13 06:16:10 -04:00
Merge branch '20_internal_prio'
This commit is contained in:
commit
7ad90f6a25
1
event.c
1
event.c
@ -2725,6 +2725,7 @@ evthread_make_base_notifiable(struct event_base *base)
|
|||||||
|
|
||||||
/* we need to mark this as internal event */
|
/* we need to mark this as internal event */
|
||||||
base->th_notify.ev_flags |= EVLIST_INTERNAL;
|
base->th_notify.ev_flags |= EVLIST_INTERNAL;
|
||||||
|
event_priority_set(&base->th_notify, 0);
|
||||||
|
|
||||||
return event_add(&base->th_notify, NULL);
|
return event_add(&base->th_notify, NULL);
|
||||||
}
|
}
|
||||||
|
1
signal.c
1
signal.c
@ -202,6 +202,7 @@ evsig_init(struct event_base *base)
|
|||||||
EV_READ | EV_PERSIST, evsig_cb, base);
|
EV_READ | EV_PERSIST, evsig_cb, base);
|
||||||
|
|
||||||
base->sig.ev_signal.ev_flags |= EVLIST_INTERNAL;
|
base->sig.ev_signal.ev_flags |= EVLIST_INTERNAL;
|
||||||
|
event_priority_set(&base->sig.ev_signal, 0);
|
||||||
|
|
||||||
base->evsigsel = &evsigops;
|
base->evsigsel = &evsigops;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user