aboutsummaryrefslogtreecommitdiff
path: root/dep/src/zthread/ThreadImpl.h
diff options
context:
space:
mode:
authorParadox <none@none>2009-02-09 08:16:34 -0500
committerParadox <none@none>2009-02-09 08:16:34 -0500
commitd230302b16474ff22a35243ffed6236ef4fc7fb9 (patch)
treee3679ad841a47b275756f2721f9aa24a3ee548a6 /dep/src/zthread/ThreadImpl.h
parentb0694d7e5e794b361fa178d55fefdb98cf47e9ca (diff)
Replace tabs with spaces in more files.
--HG-- branch : trunk
Diffstat (limited to 'dep/src/zthread/ThreadImpl.h')
-rw-r--r--dep/src/zthread/ThreadImpl.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/dep/src/zthread/ThreadImpl.h b/dep/src/zthread/ThreadImpl.h
index ae2c8f23960..f464242918c 100644
--- a/dep/src/zthread/ThreadImpl.h
+++ b/dep/src/zthread/ThreadImpl.h
@@ -53,7 +53,7 @@ class ThreadImpl : public IntrusivePtr<ThreadImpl, FastLock>, public ThreadOps {
//! The Monitor for controlling this thread
Monitor _monitor;
-
+
//! Current state for the thread
State _state;
@@ -61,11 +61,11 @@ class ThreadImpl : public IntrusivePtr<ThreadImpl, FastLock>, public ThreadOps {
List _joiners;
public:
-
+
typedef std::map<const ThreadLocalImpl*, ThreadLocalImpl::ValuePtr > ThreadLocalMap;
private:
-
+
ThreadLocalMap _tls;
//! Cached thread priority
@@ -73,7 +73,7 @@ class ThreadImpl : public IntrusivePtr<ThreadImpl, FastLock>, public ThreadOps {
//! Request cancel() when main() goes out of scope
bool _autoCancel;
-
+
void start(const Task& task);
public:
@@ -82,7 +82,7 @@ class ThreadImpl : public IntrusivePtr<ThreadImpl, FastLock>, public ThreadOps {
ThreadImpl(const Task&, bool);
- ~ThreadImpl();
+ ~ThreadImpl();
Monitor& getMonitor();
@@ -99,24 +99,24 @@ class ThreadImpl : public IntrusivePtr<ThreadImpl, FastLock>, public ThreadOps {
// ThreadLocalMap& getThreadLocalMap();
ThreadLocalMap& getThreadLocalMap() { return _tls; }
- bool join(unsigned long);
-
+ bool join(unsigned long);
+
void setPriority(Priority);
bool isActive();
bool isReference();
- static void sleep(unsigned long);
+ static void sleep(unsigned long);
static void yield();
-
+
static ThreadImpl* current();
static void dispatch(ThreadImpl*, ThreadImpl*, Task);
};
-} // namespace ZThread
+} // namespace ZThread
#endif // __ZTTHREADIMPL_H__