diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-09-24 16:03:21 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-09-24 16:03:21 +0100 |
| commit | e975b14d2c962eab149f56a79c35b68b608226d4 (patch) | |
| tree | 0959a5d0f4680538c1f080659e82b5bf073bba6c /src/lib/writer.cc | |
| parent | b7ef3e79b9eb4f245556e69c68ee624c5b43e126 (diff) | |
assert (joinable) before joining threads.
Diffstat (limited to 'src/lib/writer.cc')
| -rw-r--r-- | src/lib/writer.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/writer.cc b/src/lib/writer.cc index 1318cc20f..bace6602d 100644 --- a/src/lib/writer.cc +++ b/src/lib/writer.cc @@ -477,6 +477,7 @@ Writer::terminate_thread (bool can_throw) _full_condition.notify_all (); lock.unlock (); + DCPOMATIC_ASSERT (_thread->joinable ()); _thread->join (); if (can_throw) { rethrow (); |
