diff options
Diffstat (limited to 'include/threadengine.h')
-rw-r--r-- | include/threadengine.h | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/include/threadengine.h b/include/threadengine.h index 19fa53b09..7d7c2dc70 100644 --- a/include/threadengine.h +++ b/include/threadengine.h @@ -9,8 +9,7 @@ * Based on the original code of Services by Andy Church. */ -#ifndef THREADENGINE_H -#define THREADENGINE_H +#pragma once #include "sockets.h" #include "extensible.h" @@ -19,19 +18,15 @@ class CoreExport Thread : public Pipe, public Extensible { private: /* Set to true to tell the thread to finish and we are waiting for it */ - bool exit; + bool exit = false; public: /* Handle for this thread */ pthread_t handle; - /** Threads constructor - */ - Thread(); - /** Threads destructor */ - virtual ~Thread(); + virtual ~Thread() = default; /** Join to the thread, sets the exit state to true */ @@ -116,5 +111,3 @@ class CoreExport Condition : public Mutex */ void Wait(); }; - -#endif // THREADENGINE_H |