X-Git-Url: http://plrg.eecs.uci.edu/git/?p=libcds.git;a=blobdiff_plain;f=test%2Fstress%2Fmisc%2Fspinlock_driver.cpp;h=6bccc11739edd84ad478406b8867fc3c541ec4ce;hp=4a8eb35bbabdea6fd61976dda9da1d4747ccfcb9;hb=3df53b6f49af6dcdfe87ed6e16aa86b083df6ef6;hpb=7c2016d882ea471c4dcb665001dc21cf6b1d7acc diff --git a/test/stress/misc/spinlock_driver.cpp b/test/stress/misc/spinlock_driver.cpp index 4a8eb35b..6bccc117 100644 --- a/test/stress/misc/spinlock_driver.cpp +++ b/test/stress/misc/spinlock_driver.cpp @@ -20,6 +20,7 @@ typedef cds::sync::reentrant_spin32 Reentrant32; typedef cds::sync::reentrant_spin64 Reentrant64; static size_t s_nSpinLockThreadCount = 4; static size_t s_nSpinLockPassCount = 2500000000; +static size_t s_nReentrantLockPassCount = 2500000000; static size_t s_nTicketLockPassCount = 4000000; #define TASK(lock_type, lock_ptr, pass_cnt) \ @@ -64,13 +65,14 @@ protected: cds_test::config const &cfg = get_config("Misc"); GetConfig(SpinLockThreadCount); GetConfig(SpinLockPassCount); + GetConfig(ReentrantLockPassCount); GetConfig(TicketLockPassCount); } TASK(TicketLock, ticket_mutex, s_nTicketLockPassCount) TASK(SpinLock, spin_mutex, s_nSpinLockPassCount) - TASK(Reentrant32, reentrant_mutex32, s_nSpinLockPassCount) - TASK(Reentrant64, reentrant_mutex64, s_nSpinLockPassCount) + TASK(Reentrant32, reentrant_mutex32, s_nReentrantLockPassCount) + TASK(Reentrant64, reentrant_mutex64, s_nReentrantLockPassCount) }; size_t SpinLockTest::x; @@ -81,7 +83,7 @@ Reentrant64 *SpinLockTest::reentrant_mutex64; LOCK_TEST(TicketLock, ticket_mutex, s_nTicketLockPassCount) LOCK_TEST(SpinLock, spin_mutex, s_nSpinLockPassCount) -LOCK_TEST(Reentrant32, reentrant_mutex32, s_nSpinLockPassCount) -LOCK_TEST(Reentrant64, reentrant_mutex64, s_nSpinLockPassCount) +LOCK_TEST(Reentrant32, reentrant_mutex32, s_nReentrantLockPassCount) +LOCK_TEST(Reentrant64, reentrant_mutex64, s_nReentrantLockPassCount) } // namespace