diff options
author | Joe George <joe@zeroc.com> | 2019-10-09 09:44:02 -0400 |
---|---|---|
committer | Joe George <joe@zeroc.com> | 2019-10-09 10:36:29 -0400 |
commit | f8eac506baa7537876ae3308b946241a00834876 (patch) | |
tree | 26c066c14fb7b341ae6698c8662c0db5f9e8bc16 /cpp/src/Ice/ThreadPool.cpp | |
parent | Fixed Swift leak when unmarshalling Ice value, fixes #581 (diff) | |
download | ice-f8eac506baa7537876ae3308b946241a00834876.tar.bz2 ice-f8eac506baa7537876ae3308b946241a00834876.tar.xz ice-f8eac506baa7537876ae3308b946241a00834876.zip |
Fix #579 - Add autoreleasepools from objc -> swift
Diffstat (limited to 'cpp/src/Ice/ThreadPool.cpp')
-rw-r--r-- | cpp/src/Ice/ThreadPool.cpp | 3 |
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 |