peak_amplitude_thread fix - #6807
authorRobin Gareus <robin@gareus.org>
Mon, 16 May 2016 00:49:18 +0000 (02:49 +0200)
committerRobin Gareus <robin@gareus.org>
Mon, 16 May 2016 00:49:18 +0000 (02:49 +0200)
commit1b570d98861ba476ebd3fb9c066304973753c600
tree579a822f2423d76c4a861bcfa451e904c2622e1f
parent89361e08337c4179f432c9e9712e02e014d3891c
peak_amplitude_thread fix - #6807

On windows AudioRegionEditor d'tor never returns, stalling or
crashing in pthread_join() after pthread_cancel().
Crashes happen if two thread pools with the same name exist.
(but since the thread has no event loop, no pool is needed)

After showing Region Properties any operation that would close the dialog
will either cause the application to hang indefinitely or terminate.

This also consolidates code: CrossThreadChannel works on windows these days
gtk2_ardour/audio_region_editor.cc
gtk2_ardour/audio_region_editor.h