diff options
author | Bernard Normier <bernard@zeroc.com> | 2016-11-05 10:51:35 -0400 |
---|---|---|
committer | Bernard Normier <bernard@zeroc.com> | 2016-11-05 10:51:35 -0400 |
commit | 298bccf0b6243f2cd741af59b1547b915128356b (patch) | |
tree | aff10041d00b5aec3413e620db079cc735c83375 /cpp/src/IceGrid | |
parent | Revert "Replaced double underscores in C# mapping by ice-prefix names" (diff) | |
download | ice-298bccf0b6243f2cd741af59b1547b915128356b.tar.bz2 ice-298bccf0b6243f2cd741af59b1547b915128356b.tar.xz ice-298bccf0b6243f2cd741af59b1547b915128356b.zip |
Revert "Reverted previous double-underscore changes in IceUtil classes"
This reverts commit 2e6243dd2955e6a292bbe8a569d4e1711253746a.
Diffstat (limited to 'cpp/src/IceGrid')
-rw-r--r-- | cpp/src/IceGrid/NodeCache.cpp | 4 | ||||
-rw-r--r-- | cpp/src/IceGrid/NodeCache.h | 4 | ||||
-rw-r--r-- | cpp/src/IceGrid/NodeSessionI.cpp | 8 | ||||
-rw-r--r-- | cpp/src/IceGrid/ReplicaSessionI.cpp | 8 |
4 files changed, 12 insertions, 12 deletions
diff --git a/cpp/src/IceGrid/NodeCache.cpp b/cpp/src/IceGrid/NodeCache.cpp index 8757dc0fe2b..abac64ac90c 100644 --- a/cpp/src/IceGrid/NodeCache.cpp +++ b/cpp/src/IceGrid/NodeCache.cpp @@ -722,7 +722,7 @@ NodeEntry::getInternalServerDescriptor(const ServerInfo& server, const SessionIP } void -NodeEntry::__incRef() +NodeEntry::iceIncRef() { Lock sync(*this); assert(_ref >= 0); @@ -730,7 +730,7 @@ NodeEntry::__incRef() } void -NodeEntry::__decRef() +NodeEntry::iceDecRef() { // // The node entry implements its own reference counting. If the diff --git a/cpp/src/IceGrid/NodeCache.h b/cpp/src/IceGrid/NodeCache.h index 1346cdb3ee2..88b1bf88fa7 100644 --- a/cpp/src/IceGrid/NodeCache.h +++ b/cpp/src/IceGrid/NodeCache.h @@ -62,8 +62,8 @@ public: ServerInfo getServerInfo(const ServerInfo&, const SessionIPtr&); InternalServerDescriptorPtr getInternalServerDescriptor(const ServerInfo&, const SessionIPtr&); - void __incRef(); - void __decRef(); + void iceIncRef(); + void iceDecRef(); void checkSession() const; void setProxy(const NodePrx&); diff --git a/cpp/src/IceGrid/NodeSessionI.cpp b/cpp/src/IceGrid/NodeSessionI.cpp index 01bbb7679c0..9accf0eb7f3 100644 --- a/cpp/src/IceGrid/NodeSessionI.cpp +++ b/cpp/src/IceGrid/NodeSessionI.cpp @@ -145,7 +145,7 @@ NodeSessionI::NodeSessionI(const DatabasePtr& database, _load(load), _destroy(false) { - __setNoDelete(true); + iceSetNoDelete(true); try { _database->getNode(info->name, true)->setSession(this); @@ -159,7 +159,7 @@ NodeSessionI::NodeSessionI(const DatabasePtr& database, } catch(const NodeActiveException&) { - __setNoDelete(false); + iceSetNoDelete(false); throw; } catch(...) @@ -174,10 +174,10 @@ NodeSessionI::NodeSessionI(const DatabasePtr& database, _database->getNode(info->name)->setSession(0); - __setNoDelete(false); + iceSetNoDelete(false); throw; } - __setNoDelete(false); + iceSetNoDelete(false); } void diff --git a/cpp/src/IceGrid/ReplicaSessionI.cpp b/cpp/src/IceGrid/ReplicaSessionI.cpp index acb3f2e56d2..983ebd24430 100644 --- a/cpp/src/IceGrid/ReplicaSessionI.cpp +++ b/cpp/src/IceGrid/ReplicaSessionI.cpp @@ -42,7 +42,7 @@ ReplicaSessionI::ReplicaSessionI(const DatabasePtr& database, _timestamp(IceUtil::Time::now(IceUtil::Time::Monotonic)), _destroy(false) { - __setNoDelete(true); + iceSetNoDelete(true); try { _database->getReplicaCache().add(info->name, this); @@ -54,7 +54,7 @@ ReplicaSessionI::ReplicaSessionI(const DatabasePtr& database, } catch(const ReplicaActiveException&) { - __setNoDelete(false); + iceSetNoDelete(false); throw; } catch(...) @@ -64,10 +64,10 @@ ReplicaSessionI::ReplicaSessionI(const DatabasePtr& database, _database->getReplicaCache().remove(_info->name, false); - __setNoDelete(false); + iceSetNoDelete(false); throw; } - __setNoDelete(false); + iceSetNoDelete(false); } void |