summaryrefslogtreecommitdiff
path: root/include/threadengine.h
diff options
context:
space:
mode:
authorNaram Qashat <cyberbotx@cyberbotx.com>2010-06-20 18:42:58 -0400
committerNaram Qashat <cyberbotx@cyberbotx.com>2010-06-20 18:42:58 -0400
commit381c9c8870fad4c544f29deec22ba4be3549a731 (patch)
treef5f26e2dd380910b0ddd26e3d885d6bf56d40181 /include/threadengine.h
parent2528dc80bd1b3e6b2c09db23eb51659e30128110 (diff)
The first of a few "CBX OCDing over code style" commits, focusing on include/* and src/* but not src/core/* or src/modules/*.
Diffstat (limited to 'include/threadengine.h')
-rw-r--r--include/threadengine.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/include/threadengine.h b/include/threadengine.h
index ab668ea50..1337f0c61 100644
--- a/include/threadengine.h
+++ b/include/threadengine.h
@@ -1,3 +1,6 @@
+#ifndef THREADENGINE_H
+#define THREADENGINE_H
+
#ifdef _WIN32
typedef HANDLE ThreadHandle;
typedef CRITICAL_SECTION MutexHandle;
@@ -35,10 +38,10 @@ class Thread : public Extensible
{
private:
/* Set to true to tell the thread to finish and we are waiting for it */
- bool Exit;
-
+ bool Exit;
+
public:
- /* Handle for this thread */
+ /* Handle for this thread */
ThreadHandle Handle;
/** Threads constructor
@@ -76,7 +79,7 @@ class Mutex
public:
/** Constructor
*/
- Mutex();
+ Mutex();
/** Destructor
*/
@@ -115,3 +118,4 @@ class Condition : public Mutex
void Wait();
};
+#endif // THREADENGINE_H