Use same macro (NTHREADS) across all tests to specify number of threads
authorIvan Maidanski <ivmai@mail.ru>
Tue, 12 Dec 2017 16:04:17 +0000 (19:04 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 12 Dec 2017 16:04:17 +0000 (19:04 +0300)
commita43c0e67c7df3917cb57567ddec0e8ccc98c7bf4
tree7b9fb9df5e47ac1d5669bd4f07bfe96ca43c0e08
parent62cdcfe478718ba1f916aa1f65decb3af16d3462
Use same macro (NTHREADS) across all tests to specify number of threads
(code refactoring)

* tests/disclaim_test.c [GC_PTHREADS] (THREAD_CNT): Rename to NTHREADS;
do not define if already defined.
* tests/disclaim_test.c [!GC_PTHREADS] (THREAD_CNT): Rename to
NTHREADS; undefine it first.
* tests/disclaim_test.c (MUTATE_CNT, main): Rename THREAD_CNT to
NTHREADS.
* tests/subthread_create.c [!NTHREADS] (INITIAL_THREAD_COUNT): Rename
to NTHREADS; add comment.
* tests/subthread_create.c (main): Rename INITIAL_THREAD_COUNT to
NTHREADS.
* tests/threadkey_test.c (LIMIT, main): Rename LIMIT to NTHREADS.
tests/disclaim_test.c
tests/subthread_create.c
tests/threadkey_test.c