diff options
author | Paradox <none@none> | 2009-02-17 20:10:49 -0600 |
---|---|---|
committer | Paradox <none@none> | 2009-02-17 20:10:49 -0600 |
commit | 3931b802f1b8b890a615e5b2a4c0ed70407468d7 (patch) | |
tree | b1386a80454be7ba341d4fcd4f87c133d9af95a7 /dep/src/zthread/Thread.cxx | |
parent | 14234c86fa4f1b31436a0289cdac5f92ab430804 (diff) |
Yet more tabs to spaces
--HG--
branch : trunk
Diffstat (limited to 'dep/src/zthread/Thread.cxx')
-rw-r--r-- | dep/src/zthread/Thread.cxx | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/dep/src/zthread/Thread.cxx b/dep/src/zthread/Thread.cxx index 25cde79969c..5ed7fc3e998 100644 --- a/dep/src/zthread/Thread.cxx +++ b/dep/src/zthread/Thread.cxx @@ -27,20 +27,20 @@ namespace ZThread { - Thread::Thread() - : _impl( ThreadImpl::current() ) { + Thread::Thread() + : _impl( ThreadImpl::current() ) { - // ThreadImpl's start out life with a reference count + // ThreadImpl's start out life with a reference count // of one, and the they are added to the ThreadQueue. _impl->addReference(); - + } Thread::Thread(const Task& task, bool autoCancel) - : _impl( new ThreadImpl(task, autoCancel) ) { - + : _impl( new ThreadImpl(task, autoCancel) ) { + _impl->addReference(); - + } bool Thread::operator==(const Thread& t) const { @@ -94,7 +94,7 @@ namespace ZThread { return _impl->interrupt(); } - + void Thread::cancel() { if(ThreadImpl::current() == _impl) @@ -102,7 +102,7 @@ namespace ZThread { _impl->cancel(); - } + } bool Thread::isCanceled() { @@ -124,4 +124,4 @@ namespace ZThread { } -} // namespace ZThread +} // namespace ZThread |