summaryrefslogtreecommitdiffstats
path: root/source/OSSupport/IsThread.h
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-08-11 19:40:15 +0200
committermadmaxoft <github@xoft.cz>2013-08-11 19:40:15 +0200
commit2baa6634ec797d4a64c25fca9b5a0451b69bf886 (patch)
treeb56730c231f4da99b2bdd88f5490d292c00e6edd /source/OSSupport/IsThread.h
parentMoved MaxPlayers and Description from cWorld to cServer. (diff)
downloadcuberite-2baa6634ec797d4a64c25fca9b5a0451b69bf886.tar
cuberite-2baa6634ec797d4a64c25fca9b5a0451b69bf886.tar.gz
cuberite-2baa6634ec797d4a64c25fca9b5a0451b69bf886.tar.bz2
cuberite-2baa6634ec797d4a64c25fca9b5a0451b69bf886.tar.lz
cuberite-2baa6634ec797d4a64c25fca9b5a0451b69bf886.tar.xz
cuberite-2baa6634ec797d4a64c25fca9b5a0451b69bf886.tar.zst
cuberite-2baa6634ec797d4a64c25fca9b5a0451b69bf886.zip
Diffstat (limited to 'source/OSSupport/IsThread.h')
-rw-r--r--source/OSSupport/IsThread.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/OSSupport/IsThread.h b/source/OSSupport/IsThread.h
index 2a4451a4a..e795b25a0 100644
--- a/source/OSSupport/IsThread.h
+++ b/source/OSSupport/IsThread.h
@@ -39,6 +39,9 @@ public:
/// Starts the thread; returns without waiting for the actual start
bool Start(void);
+ /// Signals the thread to terminate and waits until it's finished
+ void Stop(void);
+
/// Waits for the thread to finish. Doesn't signalize the ShouldTerminate flag
bool Wait(void);
@@ -70,7 +73,6 @@ private:
}
#endif // else _WIN32
-
} ;