| 593 | } |
| 594 | |
| 595 | bool Task::waitForDelayed(StatusRequest* aStatusRequest, unsigned long aInterval, long aIterations) { |
| 596 | iStatusRequest = aStatusRequest; |
| 597 | if ( iStatusRequest != NULL ) { // assign internal StatusRequest var and check if it is not NULL |
| 598 | setIterations(aIterations); |
| 599 | if ( aInterval ) setInterval(aInterval); // For the delayed version only set the interval if it was not a zero |
| 600 | iStatus.waiting = _TASK_SR_DELAY; // with delay equal to the current interval |
| 601 | return enable(); |
| 602 | } |
| 603 | return false; |
| 604 | } |
| 605 | |
| 606 | #ifdef _TASK_TIMEOUT |
| 607 | void StatusRequest::resetTimeout() { |