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;