summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernard Normier <bernard@zeroc.com>2016-11-05 10:51:35 -0400
committerBernard Normier <bernard@zeroc.com>2016-11-05 10:51:35 -0400
commit298bccf0b6243f2cd741af59b1547b915128356b (patch)
treeaff10041d00b5aec3413e620db079cc735c83375
parentRevert "Replaced double underscores in C# mapping by ice-prefix names" (diff)
downloadice-298bccf0b6243f2cd741af59b1547b915128356b.tar.bz2
ice-298bccf0b6243f2cd741af59b1547b915128356b.tar.xz
ice-298bccf0b6243f2cd741af59b1547b915128356b.zip
Revert "Reverted previous double-underscore changes in IceUtil classes"
This reverts commit 2e6243dd2955e6a292bbe8a569d4e1711253746a.
-rw-r--r--cpp/include/Ice/GCObject.h10
-rw-r--r--cpp/include/Ice/Handle.h26
-rw-r--r--cpp/include/Ice/InputStream.h2
-rw-r--r--cpp/include/Ice/ProxyHandle.h26
-rw-r--r--cpp/include/IceUtil/Handle.h20
-rw-r--r--cpp/include/IceUtil/Optional.h2
-rw-r--r--cpp/include/IceUtil/Shared.h22
-rw-r--r--cpp/src/Glacier2/SessionRouterI.cpp6
-rw-r--r--cpp/src/Ice/GCObject.cpp36
-rw-r--r--cpp/src/Ice/IPEndpointI.cpp4
-rw-r--r--cpp/src/Ice/Instance.cpp6
-rw-r--r--cpp/src/Ice/Thread.cpp32
-rw-r--r--cpp/src/Ice/ThreadPool.cpp8
-rw-r--r--cpp/src/Ice/Timer.cpp8
-rw-r--r--cpp/src/IceBT/DBus.cpp8
-rw-r--r--cpp/src/IceGrid/NodeCache.cpp4
-rw-r--r--cpp/src/IceGrid/NodeCache.h4
-rw-r--r--cpp/src/IceGrid/NodeSessionI.cpp8
-rw-r--r--cpp/src/IceGrid/ReplicaSessionI.cpp8
-rw-r--r--cpp/src/IceGridLib/PluginFacadeI.cpp4
-rw-r--r--cpp/src/IceSSL/OpenSSLEngine.cpp4
-rw-r--r--cpp/src/IceStorm/Instance.cpp6
-rw-r--r--cpp/src/IceStorm/TopicI.cpp6
-rw-r--r--cpp/src/IceStorm/TopicManagerI.cpp6
-rw-r--r--cpp/src/IceUtil/Shared.cpp8
-rw-r--r--cpp/src/Slice/CPlusPlusUtil.cpp4
-rw-r--r--cpp/test/Ice/dispatcher/Dispatcher.cpp4
-rw-r--r--cpp/test/Ice/gc/Client.cpp8
-rw-r--r--objective-c/src/Ice/Dispatcher.mm4
-rw-r--r--objective-c/src/Ice/ImplicitContextI.mm4
-rw-r--r--objective-c/src/Ice/LocalObject.mm4
-rw-r--r--objective-c/src/Ice/Object.mm12
-rw-r--r--objective-c/src/Ice/Proxy.mm8
-rw-r--r--objective-c/src/Ice/SlicedData.mm4
34 files changed, 163 insertions, 163 deletions
diff --git a/cpp/include/Ice/GCObject.h b/cpp/include/Ice/GCObject.h
index 0c1afc028e3..ad18de931ca 100644
--- a/cpp/include/Ice/GCObject.h
+++ b/cpp/include/Ice/GCObject.h
@@ -47,10 +47,10 @@ public:
//
// Override IceUtil::Shared methods
//
- virtual void __incRef();
- virtual void __decRef();
- virtual int __getRef() const;
- virtual void __setNoDelete(bool);
+ virtual void iceIncRef();
+ virtual void iceDecRef();
+ virtual int iceGetRef() const;
+ virtual void iceSetNoDelete(bool);
//
// Override Object methods
@@ -64,7 +64,7 @@ public:
//
virtual void iceGcVisitMembers(IceInternal::GCVisitor&) = 0;
- int __getRefUnsafe()
+ int iceGetRefUnsafe()
{
return _ref;
}
diff --git a/cpp/include/Ice/Handle.h b/cpp/include/Ice/Handle.h
index 6e5d4d291a8..927ad362b13 100644
--- a/cpp/include/Ice/Handle.h
+++ b/cpp/include/Ice/Handle.h
@@ -43,7 +43,7 @@ public:
if(this->_ptr)
{
- upCast(this->_ptr)->__incRef();
+ upCast(this->_ptr)->iceIncRef();
}
}
@@ -54,7 +54,7 @@ public:
if(this->_ptr)
{
- upCast(this->_ptr)->__incRef();
+ upCast(this->_ptr)->iceIncRef();
}
}
@@ -65,7 +65,7 @@ public:
if(this->_ptr)
{
- upCast(this->_ptr)->__incRef();
+ upCast(this->_ptr)->iceIncRef();
}
}
@@ -75,7 +75,7 @@ public:
if(this->_ptr)
{
- upCast(this->_ptr)->__incRef();
+ upCast(this->_ptr)->iceIncRef();
}
}
@@ -83,7 +83,7 @@ public:
{
if(this->_ptr)
{
- upCast(this->_ptr)->__decRef();
+ upCast(this->_ptr)->iceDecRef();
}
}
@@ -93,7 +93,7 @@ public:
{
if(p)
{
- upCast(p)->__incRef();
+ upCast(p)->iceIncRef();
}
T* ptr = this->_ptr;
@@ -101,7 +101,7 @@ public:
if(ptr)
{
- upCast(ptr)->__decRef();
+ upCast(ptr)->iceDecRef();
}
}
return *this;
@@ -114,7 +114,7 @@ public:
{
if(r._ptr)
{
- upCast(r._ptr)->__incRef();
+ upCast(r._ptr)->iceIncRef();
}
T* ptr = this->_ptr;
@@ -122,7 +122,7 @@ public:
if(ptr)
{
- upCast(ptr)->__decRef();
+ upCast(ptr)->iceDecRef();
}
}
return *this;
@@ -135,7 +135,7 @@ public:
{
if(r._ptr)
{
- upCast(r._ptr)->__incRef();
+ upCast(r._ptr)->iceIncRef();
}
T* ptr = this->_ptr;
@@ -143,7 +143,7 @@ public:
if(ptr)
{
- upCast(ptr)->__decRef();
+ upCast(ptr)->iceDecRef();
}
}
return *this;
@@ -155,7 +155,7 @@ public:
{
if(r._ptr)
{
- upCast(r._ptr)->__incRef();
+ upCast(r._ptr)->iceIncRef();
}
T* ptr = this->_ptr;
@@ -163,7 +163,7 @@ public:
if(ptr)
{
- upCast(ptr)->__decRef();
+ upCast(ptr)->iceDecRef();
}
}
return *this;
diff --git a/cpp/include/Ice/InputStream.h b/cpp/include/Ice/InputStream.h
index ef2c1c97cf5..c570d7cbe77 100644
--- a/cpp/include/Ice/InputStream.h
+++ b/cpp/include/Ice/InputStream.h
@@ -383,7 +383,7 @@ public:
#ifdef ICE_CPP11_MAPPING
v.emplace();
#else
- v.__setIsSet();
+ v.iceSetIsSet();
#endif
StreamOptionalHelper<T,
StreamableTraits<T>::helper,
diff --git a/cpp/include/Ice/ProxyHandle.h b/cpp/include/Ice/ProxyHandle.h
index f97bfeb46eb..0e39dfa9ef6 100644
--- a/cpp/include/Ice/ProxyHandle.h
+++ b/cpp/include/Ice/ProxyHandle.h
@@ -125,7 +125,7 @@ public:
if(this->_ptr)
{
- upCast(this->_ptr)->__incRef();
+ upCast(this->_ptr)->iceIncRef();
}
}
@@ -136,7 +136,7 @@ public:
if(this->_ptr)
{
- upCast(this->_ptr)->__incRef();
+ upCast(this->_ptr)->iceIncRef();
}
}
@@ -147,7 +147,7 @@ public:
if(this->_ptr)
{
- upCast(this->_ptr)->__incRef();
+ upCast(this->_ptr)->iceIncRef();
}
}
@@ -157,7 +157,7 @@ public:
if(this->_ptr)
{
- upCast(this->_ptr)->__incRef();
+ upCast(this->_ptr)->iceIncRef();
}
}
@@ -165,7 +165,7 @@ public:
{
if(this->_ptr)
{
- upCast(this->_ptr)->__decRef();
+ upCast(this->_ptr)->iceDecRef();
}
}
@@ -175,12 +175,12 @@ public:
{
if(p)
{
- upCast(p)->__incRef();
+ upCast(p)->iceIncRef();
}
if(this->_ptr)
{
- upCast(this->_ptr)->__decRef();
+ upCast(this->_ptr)->iceDecRef();
}
this->_ptr = p;
@@ -195,12 +195,12 @@ public:
{
if(r._ptr)
{
- upCast(r._ptr)->__incRef();
+ upCast(r._ptr)->iceIncRef();
}
if(this->_ptr)
{
- upCast(this->_ptr)->__decRef();
+ upCast(this->_ptr)->iceDecRef();
}
this->_ptr = r._ptr;
@@ -215,12 +215,12 @@ public:
{
if(r._ptr)
{
- upCast(r._ptr)->__incRef();
+ upCast(r._ptr)->iceIncRef();
}
if(this->_ptr)
{
- upCast(this->_ptr)->__decRef();
+ upCast(this->_ptr)->iceDecRef();
}
this->_ptr = r._ptr;
@@ -234,12 +234,12 @@ public:
{
if(r._ptr)
{
- upCast(r._ptr)->__incRef();
+ upCast(r._ptr)->iceIncRef();
}
if(this->_ptr)
{
- upCast(this->_ptr)->__decRef();
+ upCast(this->_ptr)->iceDecRef();
}
this->_ptr = r._ptr;
diff --git a/cpp/include/IceUtil/Handle.h b/cpp/include/IceUtil/Handle.h
index 91a58be60f0..19991681cbc 100644
--- a/cpp/include/IceUtil/Handle.h
+++ b/cpp/include/IceUtil/Handle.h
@@ -154,7 +154,7 @@ public:
if(this->_ptr)
{
- this->_ptr->__incRef();
+ this->_ptr->iceIncRef();
}
}
@@ -165,7 +165,7 @@ public:
if(this->_ptr)
{
- this->_ptr->__incRef();
+ this->_ptr->iceIncRef();
}
}
@@ -175,7 +175,7 @@ public:
if(this->_ptr)
{
- this->_ptr->__incRef();
+ this->_ptr->iceIncRef();
}
}
@@ -183,7 +183,7 @@ public:
{
if(this->_ptr)
{
- this->_ptr->__decRef();
+ this->_ptr->iceDecRef();
}
}
@@ -193,7 +193,7 @@ public:
{
if(p)
{
- p->__incRef();
+ p->iceIncRef();
}
T* ptr = this->_ptr;
@@ -201,7 +201,7 @@ public:
if(ptr)
{
- ptr->__decRef();
+ ptr->iceDecRef();
}
}
return *this;
@@ -214,7 +214,7 @@ public:
{
if(r._ptr)
{
- r._ptr->__incRef();
+ r._ptr->iceIncRef();
}
T* ptr = this->_ptr;
@@ -222,7 +222,7 @@ public:
if(ptr)
{
- ptr->__decRef();
+ ptr->iceDecRef();
}
}
return *this;
@@ -234,7 +234,7 @@ public:
{
if(r._ptr)
{
- r._ptr->__incRef();
+ r._ptr->iceIncRef();
}
T* ptr = this->_ptr;
@@ -242,7 +242,7 @@ public:
if(ptr)
{
- ptr->__decRef();
+ ptr->iceDecRef();
}
}
return *this;
diff --git a/cpp/include/IceUtil/Optional.h b/cpp/include/IceUtil/Optional.h
index 60493e30fe3..c7edf344ee8 100644
--- a/cpp/include/IceUtil/Optional.h
+++ b/cpp/include/IceUtil/Optional.h
@@ -143,7 +143,7 @@ public:
std::swap(_value, other._value);
}
- void __setIsSet()
+ void iceSetIsSet()
{
_isSet = true;
}
diff --git a/cpp/include/IceUtil/Shared.h b/cpp/include/IceUtil/Shared.h
index 756b10e5f22..b9971c3d855 100644
--- a/cpp/include/IceUtil/Shared.h
+++ b/cpp/include/IceUtil/Shared.h
@@ -45,13 +45,13 @@ public:
return *this;
}
- void __incRef()
+ void iceIncRef()
{
assert(_ref >= 0);
++_ref;
}
- void __decRef()
+ void iceDecRef()
{
assert(_ref > 0);
if(--_ref == 0)
@@ -63,12 +63,12 @@ public:
}
}
- int __getRef() const
+ int iceGetRef() const
{
return _ref;
}
- void __setNoDelete(bool b)
+ void iceSetNoDelete(bool b)
{
_noDelete = b;
}
@@ -101,22 +101,22 @@ public:
return *this;
}
- virtual void __incRef();
- virtual void __decRef();
- virtual int __getRef() const;
- virtual void __setNoDelete(bool);
+ virtual void iceIncRef();
+ virtual void iceDecRef();
+ virtual int iceGetRef() const;
+ virtual void iceSetNoDelete(bool);
- void __setFlag(unsigned char flag)
+ void iceSetFlag(unsigned char flag)
{
_flags |= flag;
}
- void __clearFlag(unsigned char flag)
+ void iceClearFlag(unsigned char flag)
{
_flags &= ~flag;
}
- bool __hasFlag(unsigned char flag)
+ bool iceHasFlag(unsigned char flag)
{
return (_flags & flag) > 0;
}
diff --git a/cpp/src/Glacier2/SessionRouterI.cpp b/cpp/src/Glacier2/SessionRouterI.cpp
index 9f774b79a8e..e494f88839a 100644
--- a/cpp/src/Glacier2/SessionRouterI.cpp
+++ b/cpp/src/Glacier2/SessionRouterI.cpp
@@ -678,7 +678,7 @@ SessionRouterI::SessionRouterI(const InstancePtr& instance,
{
if(_sessionThread)
{
- __setNoDelete(true);
+ iceSetNoDelete(true);
try
{
_sessionThread->start();
@@ -687,10 +687,10 @@ SessionRouterI::SessionRouterI(const InstancePtr& instance,
{
_sessionThread->destroy();
_sessionThread = 0;
- __setNoDelete(false);
+ iceSetNoDelete(false);
throw;
}
- __setNoDelete(false);
+ iceSetNoDelete(false);
}
try
diff --git a/cpp/src/Ice/GCObject.cpp b/cpp/src/Ice/GCObject.cpp
index 7623a0b91ef..fb2cb3d3f7b 100644
--- a/cpp/src/Ice/GCObject.cpp
+++ b/cpp/src/Ice/GCObject.cpp
@@ -142,8 +142,8 @@ DecreaseRefCounts::visit(GCObject* obj)
GCCountMap::iterator p = _counts.find(obj);
if(p == _counts.end())
{
- _counts.insert(make_pair(obj, obj->__getRefUnsafe() - 1));
- if(obj->__hasFlag(GCObject::Collectable))
+ _counts.insert(make_pair(obj, obj->iceGetRefUnsafe() - 1));
+ if(obj->iceHasFlag(GCObject::Collectable))
{
obj->iceGcVisitMembers(*this);
}
@@ -224,11 +224,11 @@ MarkCollectable::visit(GCObject* obj)
// strong components of the graph.
//
- if(obj->__hasFlag(GCObject::Collectable))
+ if(obj->iceHasFlag(GCObject::Collectable))
{
return false;
}
- obj->__setFlag(GCObject::Collectable);
+ obj->iceSetFlag(GCObject::Collectable);
_numbers[obj] = ++_counter;
_p.push(obj);
@@ -243,7 +243,7 @@ MarkCollectable::visit(GCObject* obj)
{
o = _s.top();
_s.pop();
- o->__setFlag(GCObject::CycleMember);
+ o->iceSetFlag(GCObject::CycleMember);
}
while(o != obj);
_p.pop();
@@ -259,7 +259,7 @@ MarkCollectable::visitNeighbor(GCObject* obj)
{
visit(obj);
}
- else if(!obj->__hasFlag(GCObject::CycleMember))
+ else if(!obj->iceHasFlag(GCObject::CycleMember))
{
while(_numbers[_p.top()] > p->second)
{
@@ -287,9 +287,9 @@ ClearCollectable::visit(GCObject* obj)
//
// Clear the collectable flag on the object graph.
//
- if(obj->__hasFlag(GCObject::Collectable))
+ if(obj->iceHasFlag(GCObject::Collectable))
{
- obj->__clearFlag(GCObject::Collectable | GCObject::CycleMember);
+ obj->iceClearFlag(GCObject::Collectable | GCObject::CycleMember);
obj->iceGcVisitMembers(*this);
}
return false;
@@ -306,14 +306,14 @@ const unsigned char GCObject::Visiting = 8;
// GCObject
//
void
-IceInternal::GCObject::__incRef()
+IceInternal::GCObject::iceIncRef()
{
IceUtilInternal::MutexPtrLock<IceUtil::Mutex> lock(gcMutex);
++_ref;
}
void
-IceInternal::GCObject::__decRef()
+IceInternal::GCObject::iceDecRef()
{
IceUtilInternal::MutexPtrLock<IceUtil::Mutex> lock(gcMutex);
bool doDelete = false;
@@ -323,15 +323,15 @@ IceInternal::GCObject::__decRef()
// Try to collect the object each time its reference count is
// decremented and only if it's part of a cycle.
//
- if(_ref > 1 && __hasFlag(CycleMember) && collect(lock))
+ if(_ref > 1 && iceHasFlag(CycleMember) && collect(lock))
{
return;
}
if(--_ref == 0)
{
- doDelete = !__hasFlag(NoDelete);
- __setFlag(NoDelete);
+ doDelete = !iceHasFlag(NoDelete);
+ iceSetFlag(NoDelete);
}
lock.release();
@@ -342,17 +342,17 @@ IceInternal::GCObject::__decRef()
}
int
-IceInternal::GCObject::__getRef() const
+IceInternal::GCObject::iceGetRef() const
{
IceUtilInternal::MutexPtrLock<IceUtil::Mutex> lock(gcMutex);
return _ref;
}
void
-IceInternal::GCObject::__setNoDelete(bool b)
+IceInternal::GCObject::iceSetNoDelete(bool b)
{
IceUtilInternal::MutexPtrLock<IceUtil::Mutex> lock(gcMutex);
- IceUtil::Shared::__setNoDelete(b);
+ IceUtil::Shared::iceSetNoDelete(b);
}
bool
@@ -431,8 +431,8 @@ GCObject::collect(IceUtilInternal::MutexPtrLock<IceUtil::Mutex>& lock)
//
for(GCCountMap::const_iterator p = counts.begin(); p != counts.end(); ++p)
{
- p->first->__setFlag(NoDelete);
- p->first->__clearFlag(CycleMember); // Disable cycle collection.
+ p->first->iceSetFlag(NoDelete);
+ p->first->iceClearFlag(CycleMember); // Disable cycle collection.
}
for(GCCountMap::const_iterator p = counts.begin(); p != counts.end(); ++p)
{
diff --git a/cpp/src/Ice/IPEndpointI.cpp b/cpp/src/Ice/IPEndpointI.cpp
index 10983ccc672..b5017cbf596 100644
--- a/cpp/src/Ice/IPEndpointI.cpp
+++ b/cpp/src/Ice/IPEndpointI.cpp
@@ -495,7 +495,7 @@ IceInternal::EndpointHostResolver::EndpointHostResolver(const InstancePtr& insta
_preferIPv6(instance->preferIPv6()),
_destroyed(false)
{
- __setNoDelete(true);
+ iceSetNoDelete(true);
try
{
updateObserver();
@@ -518,7 +518,7 @@ IceInternal::EndpointHostResolver::EndpointHostResolver(const InstancePtr& insta
}
throw;
}
- __setNoDelete(false);
+ iceSetNoDelete(false);
}
void
diff --git a/cpp/src/Ice/Instance.cpp b/cpp/src/Ice/Instance.cpp
index 304036dec90..08987b7dace 100644
--- a/cpp/src/Ice/Instance.cpp
+++ b/cpp/src/Ice/Instance.cpp
@@ -956,7 +956,7 @@ IceInternal::Instance::Instance(const CommunicatorPtr& communicator, const Initi
{
try
{
- __setNoDelete(true);
+ iceSetNoDelete(true);
{
IceUtilInternal::MutexPtrLock<IceUtil::Mutex> sync(staticMutex);
instanceList->push_back(this);
@@ -1264,7 +1264,7 @@ IceInternal::Instance::Instance(const CommunicatorPtr& communicator, const Initi
_retryQueue = new RetryQueue(this);
- __setNoDelete(false);
+ iceSetNoDelete(false);
}
catch(...)
{
@@ -1273,7 +1273,7 @@ IceInternal::Instance::Instance(const CommunicatorPtr& communicator, const Initi
instanceList->remove(this);
}
destroy();
- __setNoDelete(false);
+ iceSetNoDelete(false);
throw;
}
}
diff --git a/cpp/src/Ice/Thread.cpp b/cpp/src/Ice/Thread.cpp
index 7882a0a2948..8c3e03cfd46 100644
--- a/cpp/src/Ice/Thread.cpp
+++ b/cpp/src/Ice/Thread.cpp
@@ -162,7 +162,7 @@ WINAPI startHook(void* arg)
//
// See the comment in IceUtil::Thread::start() for details.
//
- rawThread->__decRef();
+ rawThread->iceDecRef();
thread->run();
}
catch(...)
@@ -209,9 +209,9 @@ IceUtil::Thread::start(size_t, int)
// object could be deleted before the thread object takes
// ownership. It's also necessary to increment the reference count
// prior to calling pthread_create since the thread itself calls
- // __decRef().
+ // iceDecRef().
//
- __incRef();
+ iceIncRef();
_thread.reset(new thread(startHook, this));
_started = true;
@@ -397,7 +397,7 @@ WINAPI startHook(void* arg)
//
// See the comment in IceUtil::Thread::start() for details.
//
- rawThread->__decRef();
+ rawThread->iceDecRef();
thread->run();
}
catch(...)
@@ -444,9 +444,9 @@ IceUtil::Thread::start(size_t stackSize, int priority)
// object could be deleted before the thread object takes
// ownership. It's also necessary to increment the reference count
// prior to calling pthread_create since the thread itself calls
- // __decRef().
+ // iceDecRef().
//
- __incRef();
+ iceIncRef();
unsigned int id;
_handle =
@@ -460,7 +460,7 @@ IceUtil::Thread::start(size_t stackSize, int priority)
assert(_handle != (HANDLE)-1L);
if(_handle == 0)
{
- __decRef();
+ iceDecRef();
throw ThreadSyscallException(__FILE__, __LINE__, GetLastError());
}
if(SetThreadPriority(_handle, priority) == 0)
@@ -469,7 +469,7 @@ IceUtil::Thread::start(size_t stackSize, int priority)
}
if(static_cast<int>(ResumeThread(_handle)) == -1)
{
- __decRef();
+ iceDecRef();
throw ThreadSyscallException(__FILE__, __LINE__, GetLastError());
}
@@ -643,7 +643,7 @@ startHook(void* arg)
//
// See the comment in IceUtil::Thread::start() for details.
//
- rawThread->__decRef();
+ rawThread->iceDecRef();
thread->run();
}
catch(...)
@@ -695,15 +695,15 @@ IceUtil::Thread::start(size_t stackSize, bool realtimeScheduling, int priority)
// object could be deleted before the thread object takes
// ownership. It's also necessary to increment the reference count
// prior to calling pthread_create since the thread itself calls
- // __decRef().
+ // iceDecRef().
//
- __incRef();
+ iceIncRef();
pthread_attr_t attr;
int rc = pthread_attr_init(&attr);
if(rc != 0)
{
- __decRef();
+ iceDecRef();
pthread_attr_destroy(&attr);
throw ThreadSyscallException(__FILE__, __LINE__, rc);
}
@@ -722,7 +722,7 @@ IceUtil::Thread::start(size_t stackSize, bool realtimeScheduling, int priority)
rc = pthread_attr_setstacksize(&attr, stackSize);
if(rc != 0)
{
- __decRef();
+ iceDecRef();
pthread_attr_destroy(&attr);
throw ThreadSyscallException(__FILE__, __LINE__, rc);
}
@@ -733,7 +733,7 @@ IceUtil::Thread::start(size_t stackSize, bool realtimeScheduling, int priority)
rc = pthread_attr_setschedpolicy(&attr, SCHED_RR);
if(rc != 0)
{
- __decRef();
+ iceDecRef();
throw ThreadSyscallException(__FILE__, __LINE__, rc);
}
sched_param param;
@@ -741,7 +741,7 @@ IceUtil::Thread::start(size_t stackSize, bool realtimeScheduling, int priority)
rc = pthread_attr_setschedparam(&attr, &param);
if(rc != 0)
{
- __decRef();
+ iceDecRef();
pthread_attr_destroy(&attr);
throw ThreadSyscallException(__FILE__, __LINE__, rc);
}
@@ -751,7 +751,7 @@ IceUtil::Thread::start(size_t stackSize, bool realtimeScheduling, int priority)
pthread_attr_destroy(&attr);
if(rc != 0)
{
- __decRef();
+ iceDecRef();
throw ThreadSyscallException(__FILE__, __LINE__, rc);
}
diff --git a/cpp/src/Ice/ThreadPool.cpp b/cpp/src/Ice/ThreadPool.cpp
index 3769458371b..5412db05acc 100644
--- a/cpp/src/Ice/ThreadPool.cpp
+++ b/cpp/src/Ice/ThreadPool.cpp
@@ -373,7 +373,7 @@ IceInternal::ThreadPool::ThreadPool(const InstancePtr& instance, const string& p
<< _sizeWarn;
}
- __setNoDelete(true);
+ iceSetNoDelete(true);
try
{
for(int i = 0 ; i < _size ; ++i)
@@ -399,15 +399,15 @@ IceInternal::ThreadPool::ThreadPool(const InstancePtr& instance, const string& p
destroy();
joinWithAllThreads();
- __setNoDelete(false);
+ iceSetNoDelete(false);
throw;
}
catch(...)
{
- __setNoDelete(false);
+ iceSetNoDelete(false);
throw;
}
- __setNoDelete(false);
+ iceSetNoDelete(false);
}
IceInternal::ThreadPool::~ThreadPool()
diff --git a/cpp/src/Ice/Timer.cpp b/cpp/src/Ice/Timer.cpp
index c19ba12a92b..f85895456d0 100644
--- a/cpp/src/Ice/Timer.cpp
+++ b/cpp/src/Ice/Timer.cpp
@@ -22,18 +22,18 @@ Timer::Timer() :
Thread("IceUtil timer thread"),
_destroyed(false)
{
- __setNoDelete(true);
+ iceSetNoDelete(true);
start();
- __setNoDelete(false);
+ iceSetNoDelete(false);
}
Timer::Timer(int priority) :
Thread("IceUtil timer thread"),
_destroyed(false)
{
- __setNoDelete(true);
+ iceSetNoDelete(true);
start(0, priority);
- __setNoDelete(false);
+ iceSetNoDelete(false);
}
void
diff --git a/cpp/src/IceBT/DBus.cpp b/cpp/src/IceBT/DBus.cpp
index 21b1c960b93..2b40398b39a 100644
--- a/cpp/src/IceBT/DBus.cpp
+++ b/cpp/src/IceBT/DBus.cpp
@@ -826,7 +826,7 @@ public:
// Bump our refcount to ensure this object lives until the reply is received.
// The pendingFree function will decrement the refcount.
//
- __incRef();
+ iceIncRef();
if(!::dbus_pending_call_set_notify(_call, pendingCallCompletedCallback, this, pendingCallFree))
{
@@ -971,7 +971,7 @@ pendingCallFree(void* userData)
{
AsyncResultI* r = static_cast<AsyncResultI*>(userData);
assert(r);
- r->__decRef();
+ r->iceDecRef();
}
static DBusHandlerResult filterCallback(DBusConnection*, DBusMessage*, void*);
@@ -1117,7 +1117,7 @@ public:
::dbus_bus_add_match(_connection, "type='signal'", 0);
//::dbus_bus_add_match(_connection, "type='method_call'", 0);
- __incRef(); // iceDecRef called in freeConnection.
+ iceIncRef(); // iceDecRef called in freeConnection.
_thread = new HelperThread(this);
_thread->start();
@@ -1229,7 +1229,7 @@ static void freeConnection(void* p)
{
ConnectionI* c = static_cast<ConnectionI*>(p);
assert(c);
- c->__decRef();
+ c->iceDecRef();
}
}
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
diff --git a/cpp/src/IceGridLib/PluginFacadeI.cpp b/cpp/src/IceGridLib/PluginFacadeI.cpp
index f84f33dff0b..5747f2e0b1d 100644
--- a/cpp/src/IceGridLib/PluginFacadeI.cpp
+++ b/cpp/src/IceGridLib/PluginFacadeI.cpp
@@ -46,12 +46,12 @@ IceGrid::setRegistryPluginFacade(const RegistryPluginFacadePtr& facade)
#else
if(pluginFacade)
{
- pluginFacade->__decRef();
+ pluginFacade->iceDecRef();
}
pluginFacade = facade.get();
if(pluginFacade)
{
- pluginFacade->__incRef();
+ pluginFacade->iceIncRef();
}
#endif
}
diff --git a/cpp/src/IceSSL/OpenSSLEngine.cpp b/cpp/src/IceSSL/OpenSSLEngine.cpp
index 84238614220..76b4e562afa 100644
--- a/cpp/src/IceSSL/OpenSSLEngine.cpp
+++ b/cpp/src/IceSSL/OpenSSLEngine.cpp
@@ -195,7 +195,7 @@ OpenSSLEngine::OpenSSLEngine(const CommunicatorPtr& communicator) :
_initialized(false),
_ctx(0)
{
- __setNoDelete(true);
+ iceSetNoDelete(true);
//
// Initialize OpenSSL if necessary.
@@ -325,7 +325,7 @@ OpenSSLEngine::OpenSSLEngine(const CommunicatorPtr& communicator) :
# endif
}
}
- __setNoDelete(false);
+ iceSetNoDelete(false);
}
OpenSSLEngine::~OpenSSLEngine()
diff --git a/cpp/src/IceStorm/Instance.cpp b/cpp/src/IceStorm/Instance.cpp
index 6d8334cab4d..7f92944c498 100644
--- a/cpp/src/IceStorm/Instance.cpp
+++ b/cpp/src/IceStorm/Instance.cpp
@@ -117,7 +117,7 @@ Instance::Instance(
{
try
{
- __setNoDelete(true);
+ iceSetNoDelete(true);
Ice::PropertiesPtr properties = communicator->getProperties();
if(properties->getProperty(name + ".TopicManager.AdapterId").empty())
@@ -167,11 +167,11 @@ Instance::Instance(
{
shutdown();
destroy();
- __setNoDelete(false);
+ iceSetNoDelete(false);
throw;
}
- __setNoDelete(false);
+ iceSetNoDelete(false);
}
Instance::~Instance()
diff --git a/cpp/src/IceStorm/TopicI.cpp b/cpp/src/IceStorm/TopicI.cpp
index acea59e5c15..c89e3146211 100644
--- a/cpp/src/IceStorm/TopicI.cpp
+++ b/cpp/src/IceStorm/TopicI.cpp
@@ -352,7 +352,7 @@ TopicImpl::TopicImpl(
{
try
{
- __setNoDelete(true);
+ iceSetNoDelete(true);
// TODO: If we want to improve the performance of the
// non-replicated case we could allocate a null-topic impl here.
@@ -435,10 +435,10 @@ TopicImpl::TopicImpl(
catch(...)
{
shutdown();
- __setNoDelete(false);
+ iceSetNoDelete(false);
throw;
}
- __setNoDelete(false);
+ iceSetNoDelete(false);
}
TopicImpl::~TopicImpl()
diff --git a/cpp/src/IceStorm/TopicManagerI.cpp b/cpp/src/IceStorm/TopicManagerI.cpp
index 5c4ad1c6cbc..57f5b619a4b 100644
--- a/cpp/src/IceStorm/TopicManagerI.cpp
+++ b/cpp/src/IceStorm/TopicManagerI.cpp
@@ -255,7 +255,7 @@ TopicManagerImpl::TopicManagerImpl(const PersistentInstancePtr& instance) :
{
try
{
- __setNoDelete(true);
+ iceSetNoDelete(true);
if(_instance->observer())
{
@@ -319,10 +319,10 @@ TopicManagerImpl::TopicManagerImpl(const PersistentInstancePtr& instance) :
catch(...)
{
shutdown();
- __setNoDelete(false);
+ iceSetNoDelete(false);
throw;
}
- __setNoDelete(false);
+ iceSetNoDelete(false);
}
TopicManagerImpl::~TopicManagerImpl()
diff --git a/cpp/src/IceUtil/Shared.cpp b/cpp/src/IceUtil/Shared.cpp
index 75b43462398..c9c924fef27 100644
--- a/cpp/src/IceUtil/Shared.cpp
+++ b/cpp/src/IceUtil/Shared.cpp
@@ -47,14 +47,14 @@ IceUtil::Shared::Shared(const Shared&) :
}
void
-IceUtil::Shared::__incRef()
+IceUtil::Shared::iceIncRef()
{
assert(_ref >= 0);
++_ref;
}
void
-IceUtil::Shared::__decRef()
+IceUtil::Shared::iceDecRef()
{
assert(_ref > 0);
if(--_ref == 0 && !(_flags & NoDelete))
@@ -64,13 +64,13 @@ IceUtil::Shared::__decRef()
}
int
-IceUtil::Shared::__getRef() const
+IceUtil::Shared::iceGetRef() const
{
return _ref;
}
void
-IceUtil::Shared::__setNoDelete(bool b)
+IceUtil::Shared::iceSetNoDelete(bool b)
{
_flags = b ? (_flags | NoDelete) : (_flags & ~NoDelete);
}
diff --git a/cpp/src/Slice/CPlusPlusUtil.cpp b/cpp/src/Slice/CPlusPlusUtil.cpp
index f8bd97508fb..bbdff8765af 100644
--- a/cpp/src/Slice/CPlusPlusUtil.cpp
+++ b/cpp/src/Slice/CPlusPlusUtil.cpp
@@ -269,7 +269,7 @@ writeParamEndCode(Output& out, const TypePtr& type, bool optional, const string&
{
out << nl << "if(" << escapedParamName << ")";
out << sb;
- out << nl << paramName << ".__setIsSet();";
+ out << nl << paramName << ".iceSetIsSet();";
out << nl << "if(!" << escapedParamName << "->empty())";
out << sb;
out << nl << paramName << "->first" << " = &(*" << escapedParamName << ")[0];";
@@ -301,7 +301,7 @@ writeParamEndCode(Output& out, const TypePtr& type, bool optional, const string&
{
out << nl << "if(" << escapedParamName << ")";
out << sb;
- out << nl << paramName << ".__setIsSet();";
+ out << nl << paramName << ".iceSetIsSet();";
out << nl << paramName << "->first = (*" << escapedParamName << ").begin();";
out << nl << paramName << "->second = (*" << escapedParamName << ").end();";
out << eb;
diff --git a/cpp/test/Ice/dispatcher/Dispatcher.cpp b/cpp/test/Ice/dispatcher/Dispatcher.cpp
index c725a9af4a1..93b72a313c7 100644
--- a/cpp/test/Ice/dispatcher/Dispatcher.cpp
+++ b/cpp/test/Ice/dispatcher/Dispatcher.cpp
@@ -18,9 +18,9 @@ Dispatcher::Dispatcher()
{
_instance = this;
_terminated = false;
- __setNoDelete(true);
+ iceSetNoDelete(true);
start();
- __setNoDelete(false);
+ iceSetNoDelete(false);
}
void
diff --git a/cpp/test/Ice/gc/Client.cpp b/cpp/test/Ice/gc/Client.cpp
index f19a02225fa..e6f6c9f188d 100644
--- a/cpp/test/Ice/gc/Client.cpp
+++ b/cpp/test/Ice/gc/Client.cpp
@@ -132,15 +132,15 @@ public:
virtual bool visit(IceInternal::GCObject* obj)
{
- if(obj->__hasFlag(IceInternal::GCObject::Visiting))
+ if(obj->iceHasFlag(IceInternal::GCObject::Visiting))
{
return false;
}
- test(obj->__hasFlag(IceInternal::GCObject::CycleMember) && obj->__hasFlag(IceInternal::GCObject::Collectable));
+ test(obj->iceHasFlag(IceInternal::GCObject::CycleMember) && obj->iceHasFlag(IceInternal::GCObject::Collectable));
- obj->__setFlag(IceInternal::GCObject::Visiting);
+ obj->iceSetFlag(IceInternal::GCObject::Visiting);
obj->iceGcVisitMembers(*this);
- obj->__clearFlag(IceInternal::GCObject::Visiting);
+ obj->iceClearFlag(IceInternal::GCObject::Visiting);
return false;
}
};
diff --git a/objective-c/src/Ice/Dispatcher.mm b/objective-c/src/Ice/Dispatcher.mm
index 33462e12fde..e71b84b38fb 100644
--- a/objective-c/src/Ice/Dispatcher.mm
+++ b/objective-c/src/Ice/Dispatcher.mm
@@ -85,12 +85,12 @@ typedef IceUtil::Handle<DispatcherI> DispatcherIPtr;
}
cxxCall_ = call;
- cxxCall_->__incRef();
+ cxxCall_->iceIncRef();
return self;
}
-(void) dealloc
{
- cxxCall_->__decRef();
+ cxxCall_->iceDecRef();
cxxCall_ = 0;
[super dealloc];
}
diff --git a/objective-c/src/Ice/ImplicitContextI.mm b/objective-c/src/Ice/ImplicitContextI.mm
index 92b12edcf96..9bce79d6917 100644
--- a/objective-c/src/Ice/ImplicitContextI.mm
+++ b/objective-c/src/Ice/ImplicitContextI.mm
@@ -18,7 +18,7 @@
if(self)
{
self->implicitContext__ = implicitContext;
- self->implicitContext__->__incRef();
+ self->implicitContext__->iceIncRef();
}
return self;
}
@@ -37,7 +37,7 @@
-(void) dealloc
{
- self->implicitContext__->__decRef();
+ self->implicitContext__->iceDecRef();
[super dealloc];
}
diff --git a/objective-c/src/Ice/LocalObject.mm b/objective-c/src/Ice/LocalObject.mm
index 70b7dc692fa..0ccf9bc7dbf 100644
--- a/objective-c/src/Ice/LocalObject.mm
+++ b/objective-c/src/Ice/LocalObject.mm
@@ -43,7 +43,7 @@ std::map<IceUtil::Shared*, ICELocalObject*> cachedObjects;
return nil;
}
cxxObject_ = arg;
- CXXOBJECT->__incRef();
+ CXXOBJECT->iceIncRef();
//
// No synchronization because initWithCxxObject is always called with the wrapper class object locked
@@ -66,7 +66,7 @@ std::map<IceUtil::Shared*, ICELocalObject*> cachedObjects;
// No synchronization because dealloc is always called with the wrapper class object locked
//
cachedObjects.erase(CXXOBJECT);
- CXXOBJECT->__decRef();
+ CXXOBJECT->iceDecRef();
cxxObject_ = 0;
}
diff --git a/objective-c/src/Ice/Object.mm b/objective-c/src/Ice/Object.mm
index ba237c9ffb1..2093a2b8cdc 100644
--- a/objective-c/src/Ice/Object.mm
+++ b/objective-c/src/Ice/Object.mm
@@ -63,12 +63,12 @@ public:
// We must explicitely CFRetain/CFRelease so that the garbage
// collector does not trash the _object.
- virtual void __incRef()
+ virtual void iceIncRef()
{
CFRetain(_object);
}
- virtual void __decRef()
+ virtual void iceDecRef()
{
CFRelease(_object);
}
@@ -95,12 +95,12 @@ public:
// We must explicitely CFRetain/CFRelease so that the garbage
// collector does not trash the _blobject.
- virtual void __incRef()
+ virtual void iceIncRef()
{
CFRetain(_blobject);
}
- virtual void __decRef()
+ virtual void iceDecRef()
{
CFRelease(_blobject);
}
@@ -607,7 +607,7 @@ static NSString* ICEObject_all__[4] =
}
object__ = arg;
- object__->__incRef();
+ object__->iceIncRef();
assert(cachedObjects.find(object__) == cachedObjects.end());
cachedObjects.insert(std::make_pair(object__, self));
return self;
@@ -615,7 +615,7 @@ static NSString* ICEObject_all__[4] =
-(void) dealloc
{
cachedObjects.erase(object__);
- object__->__decRef();
+ object__->iceDecRef();
[super dealloc];
}
+(id) servantWrapperWithCxxObject:(Ice::Object*)arg
diff --git a/objective-c/src/Ice/Proxy.mm b/objective-c/src/Ice/Proxy.mm
index 477d90a0f54..7ca6bf3ce7d 100644
--- a/objective-c/src/Ice/Proxy.mm
+++ b/objective-c/src/Ice/Proxy.mm
@@ -196,7 +196,7 @@ BOOL _returnsData;
}
asyncResult__ = arg.get();
- ASYNCRESULT->__incRef();
+ ASYNCRESULT->iceIncRef();
operation_ = [op retain];
proxy_ = [p retain];
return self;
@@ -209,7 +209,7 @@ BOOL _returnsData;
-(void) dealloc
{
- ASYNCRESULT->__decRef();
+ ASYNCRESULT->iceDecRef();
asyncResult__ = 0;
[operation_ release];
[proxy_ release];
@@ -322,7 +322,7 @@ BOOL _returnsData;
}
communicator__ = [ICECommunicator localObjectWithCxxObjectNoAutoRelease:arg->ice_getCommunicator().get()];
objectPrx__ = arg.get();
- OBJECTPRX->__incRef();
+ OBJECTPRX->iceIncRef();
return self;
}
@@ -333,7 +333,7 @@ BOOL _returnsData;
-(void) dealloc
{
- OBJECTPRX->__decRef();
+ OBJECTPRX->iceDecRef();
objectPrx__ = 0;
[communicator__ release];
[super dealloc];
diff --git a/objective-c/src/Ice/SlicedData.mm b/objective-c/src/Ice/SlicedData.mm
index f4c746141a2..4b3856e04c7 100644
--- a/objective-c/src/Ice/SlicedData.mm
+++ b/objective-c/src/Ice/SlicedData.mm
@@ -22,13 +22,13 @@
return nil;
}
self->slicedData__ = slicedData;
- self->slicedData__->__incRef();
+ self->slicedData__->iceIncRef();
return self;
}
-(void) dealloc
{
- self->slicedData__->__decRef();
+ self->slicedData__->iceDecRef();
[super dealloc];
}