Refactors some of existing cds multi-threaded stress test cases
[libcds.git] / test / stress / misc / spinlock_driver.cpp
index 159c18af76018aa139d16a188f00ebe147b1f139..4a8eb35bbabdea6fd61976dda9da1d4747ccfcb9 100644 (file)
@@ -3,7 +3,7 @@
 #include <cds/gc/dhp.h>
 #include <cds/gc/hp.h>
 #include <cds/sync/spinlock.h>
-#include <cds/sync/ticket_lock.h>
+#include <cds/misc/ticket_lock.h>
 #include <cds_test/stress_test.h>
 #include <iostream>
 #include <iostream>
@@ -18,7 +18,7 @@ typedef cds_others::TicketLock TicketLock;
 typedef cds::sync::spin SpinLock;
 typedef cds::sync::reentrant_spin32 Reentrant32;
 typedef cds::sync::reentrant_spin64 Reentrant64;
-static size_t s_nSpinLockThreadCount = 6;
+static size_t s_nSpinLockThreadCount = 4;
 static size_t s_nSpinLockPassCount = 2500000000;
 static size_t s_nTicketLockPassCount = 4000000;