diff options
author | Paradox <none@none> | 2009-02-09 08:16:34 -0500 |
---|---|---|
committer | Paradox <none@none> | 2009-02-09 08:16:34 -0500 |
commit | d230302b16474ff22a35243ffed6236ef4fc7fb9 (patch) | |
tree | e3679ad841a47b275756f2721f9aa24a3ee548a6 /dep/src/zthread/posix/ThreadOps.h | |
parent | b0694d7e5e794b361fa178d55fefdb98cf47e9ca (diff) |
Replace tabs with spaces in more files.
--HG--
branch : trunk
Diffstat (limited to 'dep/src/zthread/posix/ThreadOps.h')
-rw-r--r-- | dep/src/zthread/posix/ThreadOps.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/dep/src/zthread/posix/ThreadOps.h b/dep/src/zthread/posix/ThreadOps.h index be754c2d659..8fef43bb3fd 100644 --- a/dep/src/zthread/posix/ThreadOps.h +++ b/dep/src/zthread/posix/ThreadOps.h @@ -31,7 +31,7 @@ namespace ZThread { class Runnable; - + //! Dispatch function for native pthreads required extern C //! linkage. extern "C" void* _dispatch(void*); @@ -42,7 +42,7 @@ extern "C" void* _dispatch(void*); * @date <2003-07-16T23:30:25-0400> * @version 2.2.8 * - * This class is an abstraction used to perform various operations on a + * This class is an abstraction used to perform various operations on a * native POSIX thread. */ class ThreadOps { @@ -54,10 +54,10 @@ class ThreadOps { public: - const static ThreadOps INVALID; + const static ThreadOps INVALID; /** - * Create a new ThreadOps to manipulate a native thread. + * Create a new ThreadOps to manipulate a native thread. */ ThreadOps() : _tid(0) { } @@ -66,26 +66,26 @@ public: return pthread_equal(_tid, ops._tid); } - + static ThreadOps self() { return ThreadOps(pthread_self()); } /** - * Activating an instance of ThreadOps will map it onto the currently + * Activating an instance of ThreadOps will map it onto the currently * executing thread. - */ + */ static void activate(ThreadOps* ops) { assert(ops); assert(ops->_tid == 0); ops->_tid = pthread_self(); - + } /** - * Test if this object represents the currently executing + * Test if this object represents the currently executing * native thread. * * @return bool true if successful @@ -107,7 +107,7 @@ public: static bool join(ThreadOps*); /** - * Force the current native thread to yield, letting the scheduler + * Force the current native thread to yield, letting the scheduler * give the CPU time to another thread. * * @return bool true if successful, false if the operation can't @@ -116,7 +116,7 @@ public: static bool yield(); /** - * Set the priority for the native thread if supported by the + * Set the priority for the native thread if supported by the * system. * * @param PRIORITY requested priority @@ -125,7 +125,7 @@ public: static bool setPriority(ThreadOps*, Priority); /** - * Set the priority for the native thread if supported by the + * Set the priority for the native thread if supported by the * system. * * @param Thread::PRIORITY& current priority |