diff options
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; |