diff options
author | megamage <none@none> | 2009-02-18 11:36:19 -0600 |
---|---|---|
committer | megamage <none@none> | 2009-02-18 11:36:19 -0600 |
commit | 31637d4aac6ae2081ccb3db976cab17936019f1a (patch) | |
tree | a0e098d4afafaddcb901486d00da1563ecd628b9 /dep/src/zthread/ConcurrentExecutor.cxx | |
parent | 017f309b5b5b981b6edfe0ae071971d513828a20 (diff) | |
parent | 7bff1c1d60b78ba78f2ab0a9c67bdde80427ea30 (diff) |
*Merge.
--HG--
branch : trunk
Diffstat (limited to 'dep/src/zthread/ConcurrentExecutor.cxx')
-rw-r--r-- | dep/src/zthread/ConcurrentExecutor.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/dep/src/zthread/ConcurrentExecutor.cxx b/dep/src/zthread/ConcurrentExecutor.cxx index a65e9c5e909..c5076d135ce 100644 --- a/dep/src/zthread/ConcurrentExecutor.cxx +++ b/dep/src/zthread/ConcurrentExecutor.cxx @@ -24,7 +24,7 @@ namespace ZThread { - ConcurrentExecutor::ConcurrentExecutor() + ConcurrentExecutor::ConcurrentExecutor() : _executor(1) {} void ConcurrentExecutor::interrupt() { @@ -34,21 +34,21 @@ namespace ZThread { void ConcurrentExecutor::execute(const Task& task) { _executor.execute(task); } - + void ConcurrentExecutor::cancel() { _executor.cancel(); } - + bool ConcurrentExecutor::isCanceled() { - return _executor.isCanceled(); + return _executor.isCanceled(); } - + void ConcurrentExecutor::wait() { _executor.wait(); } - + bool ConcurrentExecutor::wait(unsigned long timeout) { - return _executor.wait(timeout); + return _executor.wait(timeout); } } |