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

Method cancel_wait

thread/thread.cpp:104–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102 }
103
104 __attribute__((noinline))
105 int cancel_wait() override {
106 {
107 std::unique_lock<std::mutex> lock(_mutex);
108 notify.store(true, std::memory_order_release);
109 }
110 _cvar.notify_all();
111 return 0;
112 }
113
114 __attribute__((noinline))
115 ssize_t wait_and_fire_events(uint64_t timeout) override {

Callers 1

Calls 1

notify_allMethod · 0.45

Tested by

no test coverage detected