summaryrefslogtreecommitdiff
path: root/cppe/src/IceE/StaticMutex.cpp
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2008-06-03 19:32:20 -0700
committerMark Spruiell <mes@zeroc.com>2008-06-03 19:32:20 -0700
commit3d649bed4328992f41f567136025f58a019a5159 (patch)
tree470be901fbbfe5c6cd4269884412b0d36b48dc92 /cppe/src/IceE/StaticMutex.cpp
parentlocal interface fixes for slice2javae (diff)
downloadice-3d649bed4328992f41f567136025f58a019a5159.tar.bz2
ice-3d649bed4328992f41f567136025f58a019a5159.tar.xz
ice-3d649bed4328992f41f567136025f58a019a5159.zip
Various Ice-E fixes:
- Bug fix in slice2javae for local interfaces/classes - Added Ice.LocalObjectHolder - Reviewed Java/C++ demos and aligned with Ice - Source code clean up (removed tabs, etc.)
Diffstat (limited to 'cppe/src/IceE/StaticMutex.cpp')
-rw-r--r--cppe/src/IceE/StaticMutex.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/cppe/src/IceE/StaticMutex.cpp b/cppe/src/IceE/StaticMutex.cpp
index 6e51c9b132a..26ea365d03b 100644
--- a/cppe/src/IceE/StaticMutex.cpp
+++ b/cppe/src/IceE/StaticMutex.cpp
@@ -17,7 +17,7 @@ void IceUtil::StaticMutex::initialize() const
//
CRITICAL_SECTION* newCriticalSection = new CRITICAL_SECTION;
InitializeCriticalSection(newCriticalSection);
-
+
//
// Then assign it to _mutex
// Note that Windows performs a full memory barrier before the assignment;
@@ -25,11 +25,11 @@ void IceUtil::StaticMutex::initialize() const
//
if(InterlockedCompareExchangePointer(reinterpret_cast<void**>(&_mutex), newCriticalSection, 0) != 0)
{
- //
- // Another thread was doing the same thing
- //
- DeleteCriticalSection(newCriticalSection);
- delete newCriticalSection;
+ //
+ // Another thread was doing the same thing
+ //
+ DeleteCriticalSection(newCriticalSection);
+ delete newCriticalSection;
}
//