Hazard pointers: Optimize memory order, add bulk reclamation control, add stats,...
[folly.git] / folly / experimental / hazptr / test / HazptrTest.cpp
index 205052620cd312665dacc70e6ea774d9253f09f3..45452b5800a8773a2fb412bdd237f2f9e6e8733b 100644 (file)
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
+#define HAZPTR_DEBUG true
+#define HAZPTR_STATS true
+#define HAZPTR_SCAN_THRESHOLD 10
+
 #include <folly/experimental/hazptr/test/HazptrUse1.h>
 #include <folly/experimental/hazptr/test/HazptrUse2.h>
 #include <folly/experimental/hazptr/example/LockFreeLIFO.h>
@@ -26,7 +30,7 @@
 
 #include <thread>
 
-DEFINE_int32(num_threads, 1, "Number of threads");
+DEFINE_int32(num_threads, 5, "Number of threads");
 DEFINE_int64(num_reps, 1, "Number of test reps");
 DEFINE_int64(num_ops, 10, "Number of ops or pairs of ops per rep");