diff options
author | Mark Spruiell <mes@zeroc.com> | 2007-01-25 16:50:20 +0000 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2007-01-25 16:50:20 +0000 |
commit | 2af1be4b75d36ed2022c304c9030ff34162d44db (patch) | |
tree | 229182241b85b3dd9b57cf56a02e774b83fcd47a /cpp/src/Ice/Proxy.cpp | |
parent | IceGrid file cache fixes (diff) | |
download | ice-2af1be4b75d36ed2022c304c9030ff34162d44db.tar.bz2 ice-2af1be4b75d36ed2022c304c9030ff34162d44db.tar.xz ice-2af1be4b75d36ed2022c304c9030ff34162d44db.zip |
adding thread-per-connection settings for proxies & OAs
Diffstat (limited to 'cpp/src/Ice/Proxy.cpp')
-rw-r--r-- | cpp/src/Ice/Proxy.cpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/cpp/src/Ice/Proxy.cpp b/cpp/src/Ice/Proxy.cpp index 4f983eb98be..eb20297fb6a 100644 --- a/cpp/src/Ice/Proxy.cpp +++ b/cpp/src/Ice/Proxy.cpp @@ -800,6 +800,28 @@ IceProxy::Ice::Object::ice_connectionId(const string& id) const } } +bool +IceProxy::Ice::Object::ice_isThreadPerConnection() const +{ + return _reference->getThreadPerConnection(); +} + +ObjectPrx +IceProxy::Ice::Object::ice_threadPerConnection(bool b) const +{ + ReferencePtr ref = _reference->changeThreadPerConnection(b); + if(ref == _reference) + { + return ObjectPrx(const_cast< ::IceProxy::Ice::Object*>(this)); + } + else + { + ObjectPrx proxy(new ::IceProxy::Ice::Object()); + proxy->setup(ref); + return proxy; + } +} + ConnectionPtr IceProxy::Ice::Object::ice_connection() { |