summaryrefslogtreecommitdiff
path: root/cpp
diff options
context:
space:
mode:
authorJoe George <joe@zeroc.com>2019-10-09 09:44:02 -0400
committerJoe George <joe@zeroc.com>2019-10-09 10:36:29 -0400
commitf8eac506baa7537876ae3308b946241a00834876 (patch)
tree26c066c14fb7b341ae6698c8662c0db5f9e8bc16 /cpp
parentFixed Swift leak when unmarshalling Ice value, fixes #581 (diff)
downloadice-f8eac506baa7537876ae3308b946241a00834876.tar.bz2
ice-f8eac506baa7537876ae3308b946241a00834876.tar.xz
ice-f8eac506baa7537876ae3308b946241a00834876.zip
Fix #579 - Add autoreleasepools from objc -> swift
Diffstat (limited to 'cpp')
-rw-r--r--cpp/src/Ice/ThreadPool.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/cpp/src/Ice/ThreadPool.cpp b/cpp/src/Ice/ThreadPool.cpp
index 1479b79de90..915da9869c7 100644
--- a/cpp/src/Ice/ThreadPool.cpp
+++ b/cpp/src/Ice/ThreadPool.cpp
@@ -269,7 +269,8 @@ IceInternal::ThreadPoolWorkQueue::getNativeInfo()
IceInternal::ThreadPool::ThreadPool(const InstancePtr& instance, const string& prefix, int timeout) :
_instance(instance),
#ifdef ICE_SWIFT
- _dispatchQueue(dispatch_queue_create(prefixToDispatchQueueLabel(prefix).c_str(), DISPATCH_QUEUE_CONCURRENT)),
+ _dispatchQueue(dispatch_queue_create(prefixToDispatchQueueLabel(prefix).c_str(),
+ DISPATCH_QUEUE_CONCURRENT_WITH_AUTORELEASE_POOL)),
#else
_dispatcher(_instance->initializationData().dispatcher),
#endif