| 665 | // process command sleeps |
| 666 | sleepssemaphore->wait(); |
| 667 | loopv(sleeps) |
| 668 | { |
| 669 | if(lastmillis - sleeps[i].millis >= sleeps[i].wait) |
| 670 | { |
| 671 | char *cmd = sleeps[i].cmd; |
| 672 | sleeps[i].cmd = NULL; |
| 673 | sleeps.remove(i--); |
| 674 | sleepssemaphore->post(); |
| 675 | execute(cmd); |
| 676 | delete[] cmd; |
| 677 | sleepssemaphore->wait(); |
| 678 | } |
| 679 | } |
| 680 | sleepssemaphore->post(); |
| 681 | |
| 682 | syncentchanges(); |
no test coverage detected