diff options
author | megamage <none@none> | 2009-02-12 17:09:15 -0600 |
---|---|---|
committer | megamage <none@none> | 2009-02-12 17:09:15 -0600 |
commit | 6aee5fcbe7473a3cbac12b7e8482a7b98bef8be3 (patch) | |
tree | 91ec91d5c19eba9c2fe0e84b1c9dc7047a3de80e /dep/src/zthread/ThreadImpl.h | |
parent | 2d2f433b4de1c35b22aaf07854fc0ee11fcb350d (diff) | |
parent | f385747164c3fb278c92ef46fbd6c3da6590bbf0 (diff) |
*Merge.
--HG--
branch : trunk
Diffstat (limited to 'dep/src/zthread/ThreadImpl.h')
-rw-r--r-- | dep/src/zthread/ThreadImpl.h | 20 |
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__ |