rename GC sources
[libcds.git] / src / hp_const.h
diff --git a/src/hp_const.h b/src/hp_const.h
new file mode 100644 (file)
index 0000000..71359d9
--- /dev/null
@@ -0,0 +1,30 @@
+//$$CDS-header$$
+
+#ifndef __CDSIMPL_HP_CONST_H
+#define __CDSIMPL_HP_CONST_H
+
+/*
+    File: hp_const.h
+
+    Michael's Hazard Pointer reclamation schema global constants
+    Gidenstam's reclamation schema global constants
+
+    Editions:
+        2008.03.10    Maxim.Khiszinsky    Created
+*/
+
+namespace cds { namespace gc {
+
+    //---------------------------------------------------------------
+    // Hazard Pointers reclamation schema constants
+    namespace hzp {
+        // Max number of threads expected
+        static const size_t c_nMaxThreadCount     = 100;
+
+        // Number of Hazard Pointers per thread
+        static const size_t c_nHazardPointerPerThread = 8;
+    } // namespace hzp
+
+} /* namespace gc */ }    /* namespace cds */
+
+#endif    // #ifndef __CDSIMPL_HZP_CONST_H