diff options
author | Robin Gareus <robin@gareus.org> | 2015-09-02 01:46:31 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2015-09-02 01:46:31 +0200 |
commit | c6d6f038b487529d7c56df0cb29f6619ac978439 (patch) | |
tree | f36fbf066d88a70f2ae319dcfb3e797f7511c325 /libs/canvas | |
parent | dc831e4d8ba8276416df890f2359e014aee49061 (diff) |
handle waveform drawing thread shutdown
Diffstat (limited to 'libs/canvas')
-rw-r--r-- | libs/canvas/wave_view.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libs/canvas/wave_view.cc b/libs/canvas/wave_view.cc index 609738326c..a06ec1090a 100644 --- a/libs/canvas/wave_view.cc +++ b/libs/canvas/wave_view.cc @@ -1526,6 +1526,11 @@ WaveView::drawing_thread () request_cond.wait (request_queue_lock); } + if (request_queue.empty()) { + assert (g_atomic_int_get (&drawing_thread_should_quit)); + continue; // or break; + } + /* remove the request from the queue (remember: the "request" * is just a pointer to a WaveView object) */ |