commit | aee78b1bf58a30e45bfbf3aed2c0e38c8e60c648 | [log] [tgz] |
---|---|---|
author | Martin Veith <veithm@apache.org> | Wed Oct 17 06:51:35 2012 +0000 |
committer | Martin Veith <veithm@apache.org> | Wed Oct 17 06:51:35 2012 +0000 |
tree | ede2b9d5ff601a59072675427a8e0344d1029cc9 | |
parent | 43915d62a0f84084b767433200b74e05223debae [diff] |
ETCH-244 Fixing QueuedPool todo Change-Id: I43f88546ad2e6212e6fa6f99baa822c85107b46d git-svn-id: https://svn.apache.org/repos/asf/incubator/etch/trunk@1399123 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/binding-cpp/runtime/src/main/support/EtchQueuedPool.cpp b/binding-cpp/runtime/src/main/support/EtchQueuedPool.cpp index f22e918..392cf18 100644 --- a/binding-cpp/runtime/src/main/support/EtchQueuedPool.cpp +++ b/binding-cpp/runtime/src/main/support/EtchQueuedPool.cpp
@@ -88,9 +88,10 @@ if(!mIsOpen) { return ETCH_EINVAL; } + if(mPool->getSize() + 1 > mSizeMax) + return ETCH_ENOT_SUPPORTED; EtchQueuedPoolRunnable* pr = new EtchQueuedPoolRunnable(this, runnable); - //TODO: check max Size before adding a new Runnable capu::status_t status = mPool->add(pr); if(status != capu::CAPU_OK) { return ETCH_ERROR;