Boost logo

Boost-Commit :

From: anthony_at_[hidden]
Date: 2008-07-01 12:22:47


Author: anthonyw
Date: 2008-07-01 12:22:47 EDT (Tue, 01 Jul 2008)
New Revision: 46958
URL: http://svn.boost.org/trac/boost/changeset/46958

Log:
Reduced thread counts to make tests run faster
Text files modified:
   trunk/libs/thread/test/test_shared_mutex.cpp | 10 +++++-----
   1 files changed, 5 insertions(+), 5 deletions(-)

Modified: trunk/libs/thread/test/test_shared_mutex.cpp
==============================================================================
--- trunk/libs/thread/test/test_shared_mutex.cpp (original)
+++ trunk/libs/thread/test/test_shared_mutex.cpp 2008-07-01 12:22:47 EDT (Tue, 01 Jul 2008)
@@ -17,7 +17,7 @@
 
 void test_multiple_readers()
 {
- unsigned const number_of_threads=100;
+ unsigned const number_of_threads=10;
     
     boost::thread_group pool;
 
@@ -64,7 +64,7 @@
 
 void test_only_one_writer_permitted()
 {
- unsigned const number_of_threads=100;
+ unsigned const number_of_threads=10;
     
     boost::thread_group pool;
 
@@ -164,7 +164,7 @@
     boost::mutex finish_mutex;
     boost::mutex::scoped_lock finish_lock(finish_mutex);
 
- unsigned const reader_count=100;
+ unsigned const reader_count=10;
 
     try
     {
@@ -218,8 +218,8 @@
     boost::mutex finish_writing_mutex;
     boost::mutex::scoped_lock finish_writing_lock(finish_writing_mutex);
 
- unsigned const reader_count=100;
- unsigned const writer_count=100;
+ unsigned const reader_count=10;
+ unsigned const writer_count=10;
 
     try
     {


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk