MCPcopy Create free account
hub / github.com/alibaba/PhotonLibOS / get_vcpu_num

Function get_vcpu_num

thread/thread.cpp:2104–2106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2102
2103 static std::atomic<uint32_t> _n_vcpu{0};
2104 uint32_t get_vcpu_num() {
2105 return _n_vcpu.load(std::memory_order_relaxed);
2106 }
2107
2108 int vcpu_init(uint64_t flags) {
2109 uint64_t FLAGS = VCPU_ENABLE_ACTIVE_WORK_STEALING |

Callers 2

hardware_concurrencyMethod · 0.85
hardware_concurrencyMethod · 0.85

Calls 1

loadMethod · 0.45

Tested by

no test coverage detected