mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-17 04:06:26 +01:00
Breathe at exit: allow event-loops to clean up
This commit is contained in:
parent
c6a7c9417e
commit
d6106b22cb
1 changed files with 14 additions and 0 deletions
|
|
@ -442,8 +442,22 @@ int main (int argc, char *argv[])
|
||||||
ui = 0;
|
ui = 0;
|
||||||
|
|
||||||
ARDOUR::cleanup ();
|
ARDOUR::cleanup ();
|
||||||
|
#ifndef NDEBUG
|
||||||
|
if (getenv ("ARDOUR_RUNNING_UNDER_VALGRIND")) {
|
||||||
|
Glib::usleep(100000);
|
||||||
|
sched_yield();
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
pthread_cancel_all ();
|
pthread_cancel_all ();
|
||||||
|
|
||||||
|
#ifndef NDEBUG
|
||||||
|
if (getenv ("ARDOUR_RUNNING_UNDER_VALGRIND")) {
|
||||||
|
Glib::usleep(100000);
|
||||||
|
sched_yield();
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
console_madness_end ();
|
console_madness_end ();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue