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

Method stop

common/event-loop.cpp:74–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72 }
73
74 virtual void stop() override
75 {
76 if (m_state <= STOP)
77 return;
78
79 auto state = m_state;
80 m_state = STOPPING;
81 if (state == WAITING && m_thread != nullptr)
82 thread_interrupt(m_thread);
83
84 while (m_state != STOP)
85 m_cond.wait_no_lock();
86 }
87};
88
89EventLoop* new_event_loop(EventLoop::Wait4Events wait,

Callers 1

~ObjectCacheV2Method · 0.45

Calls 2

thread_interruptFunction · 0.85
wait_no_lockMethod · 0.45

Tested by

no test coverage detected