From 4eba9b823832a5bab1acffeabc245b06fe113d75 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Tue, 14 May 2013 19:34:10 -0500 Subject: Fix a number of threading data races Add proper thread termination handler This partially resolves Bug 1508 --- src/kernel/qthread.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/kernel/qthread.h') diff --git a/src/kernel/qthread.h b/src/kernel/qthread.h index 0188ea6..80448a0 100644 --- a/src/kernel/qthread.h +++ b/src/kernel/qthread.h @@ -108,6 +108,14 @@ public: bool finished() const; bool running() const; + enum CleanupType { + CleanupNone, + CleanupMergeObjects + }; + + CleanupType cleanupType(); + void setCleanupType(CleanupType); + protected: virtual void run() = 0; -- cgit v1.2.1