diff options
author | José Fonseca <jfonseca@vmware.com> | 2013-05-10 17:17:38 +0100 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2013-05-10 17:18:09 +0100 |
commit | e04a310cbaf02782fab6f62269eacd17911a72cc (patch) | |
tree | d3d0e55b867f35c7552a659ad72a5f7be973068e /retrace | |
parent | a24fe0c912743e7c658d6e28ae737692351f6634 (diff) |
retrace: Join with runner threads before destroy runner objects.
This fixes segfaults when exiting on windows.
Diffstat (limited to 'retrace')
-rw-r--r-- | retrace/retrace_main.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/retrace/retrace_main.cpp b/retrace/retrace_main.cpp index 492deca4..5e31c020 100644 --- a/retrace/retrace_main.cpp +++ b/retrace/retrace_main.cpp @@ -284,6 +284,12 @@ public: } } + ~RelayRunner() { + if (thread.joinable()) { + thread.join(); + } + } + /** * Thread main loop. */ |