You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ta...@apache.org on 2012/11/20 20:15:00 UTC

svn commit: r1411803 - /activemq/activemq-cpp/trunk/activemq-cpp/src/test/decaf/lang/ThreadTest.cpp

Author: tabish
Date: Tue Nov 20 19:14:59 2012
New Revision: 1411803

URL: http://svn.apache.org/viewvc?rev=1411803&view=rev
Log:
Low the number of threads created in the stress test since it uses up all resources on older windows.

Modified:
    activemq/activemq-cpp/trunk/activemq-cpp/src/test/decaf/lang/ThreadTest.cpp

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/test/decaf/lang/ThreadTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/test/decaf/lang/ThreadTest.cpp?rev=1411803&r1=1411802&r2=1411803&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/test/decaf/lang/ThreadTest.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/test/decaf/lang/ThreadTest.cpp Tue Nov 20 19:14:59 2012
@@ -855,7 +855,7 @@ namespace {
         virtual ~RapidCreateDestoryThread(){}
 
         virtual void run() {
-            for (int i = 0; i < 5000; i++) {
+            for (int i = 0; i < 500; i++) {
                 QuickThread* t = new QuickThread;
                 t->start();
                 delete t;
@@ -868,7 +868,7 @@ namespace {
 void ThreadTest::testConcurrentRapidCreateAndDestroy() {
 
     ArrayList<Thread*> threads;
-    const int NUM_THREADS = 128;
+    const int NUM_THREADS = 32;
 
     for (int i = 0; i < NUM_THREADS; ++i) {
         threads.add(new RapidCreateDestoryThread);