activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r553546 - /activemq/activemq-cpp/trunk/src/test/activemq/concurrent/MutexTest.h
Date Thu, 05 Jul 2007 16:11:14 GMT
Author: tabish
Date: Thu Jul  5 09:11:13 2007
New Revision: 553546

URL: http://svn.apache.org/viewvc?view=rev&rev=553546
Log:
Expanding the test

Modified:
    activemq/activemq-cpp/trunk/src/test/activemq/concurrent/MutexTest.h

Modified: activemq/activemq-cpp/trunk/src/test/activemq/concurrent/MutexTest.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/test/activemq/concurrent/MutexTest.h?view=diff&rev=553546&r1=553545&r2=553546
==============================================================================
--- activemq/activemq-cpp/trunk/src/test/activemq/concurrent/MutexTest.h (original)
+++ activemq/activemq-cpp/trunk/src/test/activemq/concurrent/MutexTest.h Thu Jul  5 09:11:13
2007
@@ -25,6 +25,7 @@
 #include <activemq/concurrent/Thread.h>
 #include <activemq/concurrent/Mutex.h>
 #include <time.h>
+#include <activemq/util/Random.h>
 
 namespace activemq{
 namespace concurrent{
@@ -368,6 +369,7 @@
             bool closed;
             Mutex mutex;
             Thread* thread;
+            util::Random rand;
 
         public:
 
@@ -440,7 +442,7 @@
 
                     while( true ) {
 
-                        Thread::sleep( 30 );
+                        Thread::sleep( rand.nextInt( 100 ) );
 
                         synchronized( &mutex ) {
 



Mime
View raw message