reduce the number of threads spawned in tests to avoid EAGAIN errors from pthread_create (at least on my 2.6.31.5-127.fc12.x86_64 Core2Duo T9600 system)
This commit is contained in:
parent
c31bc2791b
commit
98519c57da
2 changed files with 9 additions and 9 deletions
|
|
@ -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=50
|
||||
err: number of threads in the pool=10
|
||||
err: deleting thread
|
||||
err: destroying the pool mutex
|
||||
err: pool mutex destroyed
|
||||
|
||||
err: destroying individual pool #1
|
||||
err: number of threads in the pool=50
|
||||
err: number of threads in the pool=10
|
||||
err: deleting thread
|
||||
err: destroying the pool mutex
|
||||
err: pool mutex destroyed
|
||||
|
||||
err: destroying individual pool #2
|
||||
err: number of threads in the pool=50
|
||||
err: number of threads in the pool=10
|
||||
err: deleting thread
|
||||
err: destroying the pool mutex
|
||||
err: pool mutex destroyed
|
||||
|
||||
err: destroying individual pool #3
|
||||
err: number of threads in the pool=50
|
||||
err: number of threads in the pool=10
|
||||
err: deleting thread
|
||||
err: destroying the pool mutex
|
||||
err: pool mutex destroyed
|
||||
|
||||
err: destroying individual pool #4
|
||||
err: number of threads in the pool=50
|
||||
err: number of threads in the pool=10
|
||||
err: deleting thread
|
||||
err: destroying the pool mutex
|
||||
err: pool mutex destroyed
|
||||
|
|
|
|||
|
|
@ -67,9 +67,9 @@ TEST ("basic-acquire-release")
|
|||
TEST ("many-acquire-release")
|
||||
{
|
||||
|
||||
const int threads_per_pool_count = 50;
|
||||
const int threads_per_pool_count = 10;
|
||||
|
||||
lumiera_threadpool_init(50);
|
||||
lumiera_threadpool_init(10);
|
||||
LumieraThread threads[threads_per_pool_count*LUMIERA_THREADCLASS_COUNT];
|
||||
|
||||
for (int kind = 0; kind < LUMIERA_THREADCLASS_COUNT; ++kind)
|
||||
|
|
@ -95,9 +95,9 @@ TEST ("many-acquire-release")
|
|||
TEST ("toomany-acquire-release")
|
||||
{
|
||||
|
||||
const int threads_per_pool_count = 51;
|
||||
const int threads_per_pool_count = 11;
|
||||
|
||||
lumiera_threadpool_init(50);
|
||||
lumiera_threadpool_init(10);
|
||||
LumieraThread threads[threads_per_pool_count*LUMIERA_THREADCLASS_COUNT];
|
||||
|
||||
for (int kind = 0; kind < LUMIERA_THREADCLASS_COUNT; ++kind)
|
||||
|
|
|
|||
Loading…
Reference in a new issue