From ec05778d5718a7912e506764d443a78d6a6179e3 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Mon, 5 Nov 2012 22:41:51 +0000 Subject: Converted tabs to spaces with tabconv. --- src/stable/synchrocounter.h | 58 ++++++++++++++++++++++----------------------- 1 file changed, 29 insertions(+), 29 deletions(-) (limited to 'src/stable/synchrocounter.h') diff --git a/src/stable/synchrocounter.h b/src/stable/synchrocounter.h index ef86445..17de890 100644 --- a/src/stable/synchrocounter.h +++ b/src/stable/synchrocounter.h @@ -12,38 +12,38 @@ namespace Bu { - /** - * A simple thread-safe counter class. This is handy for assigning unique - * IDs to objects that are being created in different threads. - *@ingroup Threading Containers - */ - template - class SynchroCounter - { - public: - SynchroCounter() : - tCounter( 0 ) - { - } - - virtual ~SynchroCounter() - { - } + /** + * A simple thread-safe counter class. This is handy for assigning unique + * IDs to objects that are being created in different threads. + *@ingroup Threading Containers + */ + template + class SynchroCounter + { + public: + SynchroCounter() : + tCounter( 0 ) + { + } + + virtual ~SynchroCounter() + { + } - T next() - { - mOperate.lock(); - T tRet = tCounter; - tCounter++; - mOperate.unlock(); + T next() + { + mOperate.lock(); + T tRet = tCounter; + tCounter++; + mOperate.unlock(); - return tRet; - } + return tRet; + } - private: - T tCounter; /**< The counter itself. */ - Mutex mOperate; /**< The master mutex, used on all operations. */ - }; + private: + T tCounter; /**< The counter itself. */ + Mutex mOperate; /**< The master mutex, used on all operations. */ + }; } #endif -- cgit v1.2.3