mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2025-01-25 18:30:04 +00:00
Removing periodic wakeup of mainloop in debug version to search for notification issues
This commit is contained in:
parent
935b0b7124
commit
ee84ff14a1
@ -2051,6 +2051,7 @@ static btime loop_time;
|
|||||||
static void
|
static void
|
||||||
io_update_time(void)
|
io_update_time(void)
|
||||||
{
|
{
|
||||||
|
times_update();
|
||||||
last_io_time = current_time();
|
last_io_time = current_time();
|
||||||
|
|
||||||
if (event_open)
|
if (event_open)
|
||||||
@ -2217,9 +2218,14 @@ io_loop(void)
|
|||||||
timers_fire(&main_birdloop.time, 1);
|
timers_fire(&main_birdloop.time, 1);
|
||||||
io_close_event();
|
io_close_event();
|
||||||
|
|
||||||
|
#if DEBUGGING
|
||||||
|
#define PERIODIC_WAKEUP 86400000
|
||||||
|
#else
|
||||||
|
#define PERIODIC_WAKEUP 3000
|
||||||
|
#endif
|
||||||
restart_poll:
|
restart_poll:
|
||||||
// FIXME
|
// FIXME
|
||||||
poll_tout = ((reload_requested || events) ? 0 : 3000); /* Time in milliseconds */
|
poll_tout = ((reload_requested || events) ? 0 : PERIODIC_WAKEUP); /* Time in milliseconds */
|
||||||
if (t = timers_first(&main_birdloop.time))
|
if (t = timers_first(&main_birdloop.time))
|
||||||
{
|
{
|
||||||
times_update();
|
times_update();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user