You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i am using baresip and the libre in a custom c++-application. The re_main function is blocking and called in a separate thread. At defined user input the re_main loop stops and the execution is finished. Although i am not completly sure if i am breaking the re_main loop correctly. I am using a timer with a cyclical timeout of 1 second and also emit the signal SIGALRM with the following signal handler.
If i am just using the signal handler without the timer the re_main loop needs sometimes more than 30 seconds to break. I am using the poll method where the fd_poll() function blocks.
Am i breaking the re_main loop correctly or is there another more convenient method to break the loop?
Why is it taking sometimes so long until the loop is exited?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
i am using baresip and the libre in a custom c++-application. The re_main function is blocking and called in a separate thread. At defined user input the re_main loop stops and the execution is finished. Although i am not completly sure if i am breaking the re_main loop correctly. I am using a timer with a cyclical timeout of 1 second and also emit the signal SIGALRM with the following signal handler.
If i am just using the signal handler without the timer the re_main loop needs sometimes more than 30 seconds to break. I am using the poll method where the fd_poll() function blocks.
Am i breaking the re_main loop correctly or is there another more convenient method to break the loop?
Why is it taking sometimes so long until the loop is exited?
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions