* @brief Ref the timer so that the event-loop won't exit as long as the timer is active */
| 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 |
no test coverage detected