3 #ifndef __CDSIMPL_HZP_CONST_H
4 #define __CDSIMPL_HZP_CONST_H
9 Michael's Hazard Pointer reclamation schema global constants
10 Gidenstam's reclamation schema global constants
13 2008.03.10 Maxim.Khiszinsky Created
16 namespace cds { namespace gc {
18 //---------------------------------------------------------------
19 // Hazard Pointers reclamation schema constants
21 // Max number of threads expected
22 static const size_t c_nMaxThreadCount = 100;
24 // Number of Hazard Pointers per thread
25 static const size_t c_nHazardPointerPerThread = 8;
28 //---------------------------------------------------------------
29 // HRC (Gidenstam) reclamation schema constants
31 using cds::gc::hzp::c_nMaxThreadCount;
32 using cds::gc::hzp::c_nHazardPointerPerThread;
34 /// Number of Hazard Pointers per thread for Node::CleanUp methods
35 static const size_t c_nCleanUpHazardPointerPerThread = 2;
37 /// Max number of links for HRC node
38 static const size_t c_nHRCMaxNodeLinkCount = 4;
40 /// Max number of links in live node that may transiently point to a deleted node
41 static const size_t c_nHRCMaxTransientLinks = c_nHRCMaxNodeLinkCount;
43 } /* namespace gc */ } /* namespace cds */
45 #endif // #ifndef __CDSIMPL_HZP_CONST_H