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/linux/FastRecursiveLock.h | |
parent | b0694d7e5e794b361fa178d55fefdb98cf47e9ca (diff) |
Replace tabs with spaces in more files.
--HG--
branch : trunk
Diffstat (limited to 'dep/src/zthread/linux/FastRecursiveLock.h')
-rw-r--r-- | dep/src/zthread/linux/FastRecursiveLock.h | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/dep/src/zthread/linux/FastRecursiveLock.h b/dep/src/zthread/linux/FastRecursiveLock.h index d253652cb53..a9a74d21521 100644 --- a/dep/src/zthread/linux/FastRecursiveLock.h +++ b/dep/src/zthread/linux/FastRecursiveLock.h @@ -36,45 +36,45 @@ namespace ZThread { * @version 2.2.0 * * This implementation of a FastRecursiveLock uses the recursive mutex - * that linux pthreads provides. - */ + * that linux pthreads provides. + */ class FastRecursiveLock : private NonCopyable { - + pthread_mutex_t _mtx; - + public: - + inline FastRecursiveLock() { - + static const pthread_mutexattr_t attr = { PTHREAD_MUTEX_RECURSIVE_NP }; pthread_mutex_init(&_mtx, &attr); } - + inline ~FastRecursiveLock() { pthread_mutex_destroy(&_mtx); } - + inline void acquire() { - + pthread_mutex_lock(&_mtx); } inline void release() { - + pthread_mutex_unlock(&_mtx); - + } - + inline bool tryAcquire(unsigned long timeout=0) { return (pthread_mutex_trylock(&_mtx) == 0); } - + }; /* FastRecursiveLock */ |