| 8 | static internal_context_t* context; |
| 9 | |
| 10 | bool wait( int* pms ) { |
| 11 | |
| 12 | int ms = *pms; |
| 13 | |
| 14 | struct timeval tv; |
| 15 | tv.tv_sec = ms / 1000; |
| 16 | tv.tv_usec = 1000 * (ms % 1000); |
| 17 | |
| 18 | poll_select( 0, NULL, NULL, NULL, &tv ); |
| 19 | |
| 20 | *pms = tv.tv_sec * 1000 + tv.tv_usec / 1000; |
| 21 | |
| 22 | return false; |
| 23 | } |
| 24 | |
| 25 | bool wait( int ms ) { |
| 26 | return wait( &ms ); |
no test coverage detected