diff options
author | Tim Besard <tim.besard@gmail.com> | 2011-11-02 15:11:59 +0100 |
---|---|---|
committer | Tim Besard <tim.besard@gmail.com> | 2011-11-02 15:11:59 +0100 |
commit | f9531223b72f8337b8d774c9e3a0d0b0f9ffcc7b (patch) | |
tree | 6942ff464682600061fde704ed13b50048fcc7d2 /src/Thread.cpp | |
parent | ba67ca081a78a9dd6fb5f36f8d2bc2dea0f5224a (diff) |
Cleaning up a bit.
Diffstat (limited to 'src/Thread.cpp')
-rw-r--r-- | src/Thread.cpp | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/src/Thread.cpp b/src/Thread.cpp index 0dfb91c..c7ea37d 100644 --- a/src/Thread.cpp +++ b/src/Thread.cpp @@ -9,17 +9,26 @@ * Douglas M. Pase - initial API and implementation * *******************************************************************************/ -#include <stdio.h> -#include <pthread.h> -#include <unistd.h> +// +// Configuration +// +// Implementation header #include "Thread.h" -#include "Lock.h" +// System includes +#include <cstdio> +#include <pthread.h> +#include <unistd.h> Lock Thread::_global_lock; int Thread::count = 0; + +// +// Implementation +// + Thread::Thread() { Thread::global_lock(); this->id = Thread::count; |