MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / execute

Method execute

base/poco/Util/src/Timer.cpp:84–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82 }
83
84 bool execute()
85 {
86 // Check if there's a StopNotification pending.
87 Poco::AutoPtr<TimerNotification> pNf = static_cast<TimerNotification*>(queue().dequeueNotification());
88 while (pNf)
89 {
90 if (pNf.cast<StopNotification>())
91 {
92 queue().clear();
93 _finished.set();
94 return false;
95 }
96 pNf = static_cast<TimerNotification*>(queue().dequeueNotification());
97 }
98
99 queue().clear();
100 _finished.set();
101 return true;
102 }
103
104 void wait()
105 {

Callers

nothing calls this directly

Calls 3

dequeueNotificationMethod · 0.45
clearMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected