| 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 | { |
nothing calls this directly
no test coverage detected