MCPcopy Create free account
hub / github.com/Distributive-Network/PythonMonkey / addRef

Method addRef

include/PyEventLoop.hh:118–125  ·  view source on GitHub ↗

* @brief Ref the timer so that the event-loop won't exit as long as the timer is active */

Source from the content-addressed store, hash-verified

116 * @brief Ref the timer so that the event-loop won't exit as long as the timer is active
117 */
118 inline void addRef() {
119 if (!_refed) {
120 _refed = true;
121 if (!_finishedOrCancelled()) { // noop if the timer is finished or canceled
122 PyEventLoop::_locker->incCounter();
123 }
124 }
125 }
126
127 /**
128 * @brief Unref the timer so that the event-loop can exit

Callers 2

enqueueWithDelayMethod · 0.80
timerAddRefFunction · 0.80

Calls 1

incCounterMethod · 0.80

Tested by

no test coverage detected