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

Function ws_scan_runq

thread/thread.cpp:1979–1984  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1977 return stolen.eject_whole();
1978 }
1979 inline __attribute__((always_inline))
1980 thread* ws_scan_runq(vcpu_t* v, vcpu_t* u) {
1981 if (!u->runq_lock.background_try_lock()) return 0;
1982 DEFER(u->runq_lock.background_unlock());
1983 return ws_scan_q(v, u->idle_worker, true);
1984 }
1985 static bool try_work_stealing(vcpu_t* vcpu) {
1986 assert(CURRENT->get_vcpu() == vcpu);
1987 assert(CURRENT == vcpu->idle_worker);

Callers 1

try_work_stealingFunction · 0.85

Calls 3

ws_scan_qFunction · 0.85
background_try_lockMethod · 0.80
background_unlockMethod · 0.80

Tested by

no test coverage detected