![]() |
![]() |
![]() |
![]() |
Wait until a path exists
#include <libgen.h> int waitfor( const char *path, int delay_ms, int poll_ms );
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
The waitfor() function waits for the given path to exist, up to a maximum time of delay_ms milliseconds, checking every poll_ms milliseconds. If you're waiting for a mountpoint, polling isn't necessary; you can specify 0 for poll_ms in this case.
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | No |
Thread | Yes |
on, waitfor in the Utilities Reference
![]() |
![]() |
![]() |
![]() |