Breathe at exit: allow event-loops to clean up
This commit is contained in:
parent
c6a7c9417e
commit
d6106b22cb
@ -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…
Reference in New Issue
Block a user