summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/ThreadPool.h
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2012-08-06 16:14:03 +0200
committerBenoit Foucher <benoit@zeroc.com>2012-08-06 16:14:03 +0200
commit7047b953adab26c7098cbfaea2b69f9d36231cd3 (patch)
tree8668c830838184ebc465554b85c085da42fb6f6a /cpp/src/Ice/ThreadPool.h
parentMissing files (diff)
parentRemoved Stream::format method, replace with startWriteEncaps parameter (diff)
downloadice-7047b953adab26c7098cbfaea2b69f9d36231cd3.tar.bz2
ice-7047b953adab26c7098cbfaea2b69f9d36231cd3.tar.xz
ice-7047b953adab26c7098cbfaea2b69f9d36231cd3.zip
Merge remote-tracking branch 'origin/encoding11' into mx
Conflicts: cpp/src/Ice/.depend cpp/src/Ice/.depend.mak cpp/src/slice2cpp/Gen.cpp
Diffstat (limited to 'cpp/src/Ice/ThreadPool.h')
-rw-r--r--cpp/src/Ice/ThreadPool.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/cpp/src/Ice/ThreadPool.h b/cpp/src/Ice/ThreadPool.h
index f59c5cb91f2..005a19459df 100644
--- a/cpp/src/Ice/ThreadPool.h
+++ b/cpp/src/Ice/ThreadPool.h
@@ -7,8 +7,7 @@
//
// **********************************************************************
-#ifndef ICE_THREAD_POOL_H
-#define ICE_THREAD_POOL_H
+#pragma once
#include <IceUtil/Shared.h>
#include <IceUtil/Mutex.h>
@@ -349,7 +348,7 @@ public:
// of the event handler. We need to lock the event handler here to call
// finishMessage.
//
-#if defined(__BCPLUSPLUS__) || (defined(_MSC_VER) && (_MSC_VER < 1300))
+#if defined(__MINGW32__) || (defined(_MSC_VER) && (_MSC_VER < 1300))
IceUtil::LockT<T> sync(_mutex);
#else
IceUtil::LockT<typename T> sync(_mutex);
@@ -367,6 +366,3 @@ private:
#endif
};
-
-
-#endif