reduce the number of threads spawned in a test

This commit is contained in:
Michael Ploujnikov 2009-11-25 19:58:54 -05:00
parent 98c608d4c0
commit bd076e4210
2 changed files with 6 additions and 6 deletions

View file

@ -48,31 +48,31 @@ TEST "Many Acquires/Releases test" many-acquire-release <<END
err: destroying threadpool
err: destroying individual pool #0
err: number of threads in the pool=1000
err: number of threads in the pool=50
err: deleting thread
err: destroying the pool mutex
err: pool mutex destroyed
err: destroying individual pool #1
err: number of threads in the pool=1000
err: number of threads in the pool=50
err: deleting thread
err: destroying the pool mutex
err: pool mutex destroyed
err: destroying individual pool #2
err: number of threads in the pool=1000
err: number of threads in the pool=50
err: deleting thread
err: destroying the pool mutex
err: pool mutex destroyed
err: destroying individual pool #3
err: number of threads in the pool=1000
err: number of threads in the pool=50
err: deleting thread
err: destroying the pool mutex
err: pool mutex destroyed
err: destroying individual pool #4
err: number of threads in the pool=1000
err: number of threads in the pool=50
err: deleting thread
err: destroying the pool mutex
err: pool mutex destroyed

View file

@ -67,7 +67,7 @@ TEST ("basic-acquire-release")
TEST ("many-acquire-release")
{
const int threads_per_pool_count = 1000;
const int threads_per_pool_count = 50;
lumiera_threadpool_init();
LumieraThread threads[threads_per_pool_count*LUMIERA_THREADCLASS_COUNT];