diff options
author | Matthew Newhook <matthew@zeroc.com> | 2007-01-17 09:39:06 +0000 |
---|---|---|
committer | Matthew Newhook <matthew@zeroc.com> | 2007-01-17 09:39:06 +0000 |
commit | 8d92cb8500e8fea809fb4064f21e0e0df4b0706b (patch) | |
tree | 08f15030120e77e2a0ce3047bb6c829b717a64a7 /cpp/src/Ice/ConnectionFactory.cpp | |
parent | Removed bogus extra warning in ConnectionI when the creation of the thread (diff) | |
download | ice-8d92cb8500e8fea809fb4064f21e0e0df4b0706b.tar.bz2 ice-8d92cb8500e8fea809fb4064f21e0e0df4b0706b.tar.xz ice-8d92cb8500e8fea809fb4064f21e0e0df4b0706b.zip |
http://bugzilla.zeroc.com/bugzilla/show_bug.cgi?id=1673
Diffstat (limited to 'cpp/src/Ice/ConnectionFactory.cpp')
-rw-r--r-- | cpp/src/Ice/ConnectionFactory.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/cpp/src/Ice/ConnectionFactory.cpp b/cpp/src/Ice/ConnectionFactory.cpp index 4f49e28403f..fd1a188387c 100644 --- a/cpp/src/Ice/ConnectionFactory.cpp +++ b/cpp/src/Ice/ConnectionFactory.cpp @@ -80,7 +80,7 @@ IceInternal::OutgoingConnectionFactory::waitUntilFinished() { wait(); } - + // // We want to wait until all connections are finished outside the // thread synchronization. @@ -578,6 +578,13 @@ IceInternal::IncomingConnectionFactory::waitUntilFinished() _threadPerIncomingConnectionFactory = 0; // + // Clear the OA. See + // http://bugzilla.zeroc.com/bugzilla/show_bug.cgi?id=1673 for + // the details of why this is necessary. + // + _adapter = 0; + + // // We want to wait until all connections are finished outside the // thread synchronization. // @@ -789,7 +796,6 @@ IceInternal::IncomingConnectionFactory::finished(const ThreadPoolPtr& threadPool IceUtil::Monitor<IceUtil::Mutex>::Lock sync(*this); - // XXX: must promoteFollower be inside or outside the mutex? threadPool->promoteFollower(); assert(threadPool.get() == dynamic_cast<ObjectAdapterI*>(_adapter.get())->getThreadPool().get()); |