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/win32/AtomicCount.cxx | |
| parent | 14234c86fa4f1b31436a0289cdac5f92ab430804 (diff) | |
Yet more tabs to spaces
--HG--
branch : trunk
Diffstat (limited to 'dep/src/zthread/win32/AtomicCount.cxx')
| -rw-r--r-- | dep/src/zthread/win32/AtomicCount.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/dep/src/zthread/win32/AtomicCount.cxx b/dep/src/zthread/win32/AtomicCount.cxx index 84cbf8c3ddc..7fe63b0da0c 100644 --- a/dep/src/zthread/win32/AtomicCount.cxx +++ b/dep/src/zthread/win32/AtomicCount.cxx @@ -32,7 +32,7 @@ namespace ZThread { AtomicCount::AtomicCount() { _value = reinterpret_cast<void*>(new LONG(0)); - + } AtomicCount::~AtomicCount() { @@ -41,20 +41,20 @@ AtomicCount::~AtomicCount() { delete reinterpret_cast<LPLONG>(_value); } - + void AtomicCount::increment() { ::InterlockedIncrement(reinterpret_cast<LPLONG>(_value)); - + } - + bool AtomicCount::decrement() { LONG v = ::InterlockedDecrement(reinterpret_cast<LPLONG>(_value)); return static_cast<unsigned long>(v) == 0; - + } - + }; #endif // __ZTATOMICCOUNTIMPL_H__ |
