3 #ifndef CDSLIB_OS_POSIX_FAKE_TOPOLOGY_H
4 #define CDSLIB_OS_POSIX_FAKE_TOPOLOGY_H
6 #ifndef CDSLIB_OS_TOPOLOGY_H
7 # error "<cds/os/topology.h> must be included instead"
10 #include <cds/os/details/fake_topology.h>
13 namespace cds { namespace OS {
14 CDS_CXX11_INLINE_NAMESPACE namespace posix {
15 /// Fake system topology
17 /// Logical processor count for the system. Always returns 1
18 static unsigned int processor_count()
23 /// Get current processor number
27 static unsigned int current_processor()
32 /// Synonym for \ref current_processor
33 static unsigned int native_current_processor()
35 return current_processor();
47 #ifndef CDS_CXX11_INLINE_NAMESPACE_SUPPORT
48 using posix::topology;
51 }} // namespace cds::OS
53 #endif // #ifndef CDSLIB_OS_POSIX_FAKE_TOPOLOGY_H