summaryrefslogtreecommitdiff
path: root/cpp/src/IceGrid/SessionI.cpp
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2006-06-02 16:11:51 +0000
committerBenoit Foucher <benoit@zeroc.com>2006-06-02 16:11:51 +0000
commit8d90c43bd49c728f3c553a4e4d2ad7d25367a872 (patch)
tree078cd0193fcdfa12936eae5a6372ae750ecb79f7 /cpp/src/IceGrid/SessionI.cpp
parentwarm up JIT compiler before measuring latency (diff)
downloadice-8d90c43bd49c728f3c553a4e4d2ad7d25367a872.tar.bz2
ice-8d90c43bd49c728f3c553a4e4d2ad7d25367a872.tar.xz
ice-8d90c43bd49c728f3c553a4e4d2ad7d25367a872.zip
Bug fixes
Diffstat (limited to 'cpp/src/IceGrid/SessionI.cpp')
-rw-r--r--cpp/src/IceGrid/SessionI.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/cpp/src/IceGrid/SessionI.cpp b/cpp/src/IceGrid/SessionI.cpp
index 2f6ced3a1b1..d150fd93f84 100644
--- a/cpp/src/IceGrid/SessionI.cpp
+++ b/cpp/src/IceGrid/SessionI.cpp
@@ -267,16 +267,15 @@ SessionI::removeAllocationRequest(const AllocationRequestPtr& request)
_requests.erase(request);
}
-bool
+void
SessionI::addAllocation(const AllocatablePtr& allocatable)
{
Lock sync(*this);
if(_destroyed)
{
- return false;
+ throw SessionDestroyedException();
}
_allocations.insert(allocatable);
- return true;
}
void