3 #ifndef __CDS_OS_POSIX_FAKE_TOPOLOGY_H
4 #define __CDS_OS_POSIX_FAKE_TOPOLOGY_H
6 #ifndef __CDS_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 {
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 using posix::topology;
48 }} // namespace cds::OS
50 #endif // #ifndef __CDS_OS_POSIX_FAKE_TOPOLOGY_H