Hi Tobias, On 07/08/2012 06:58 PM, Tobias Börtitz wrote: > of time. Short question: What is the difference between the functions > usleep(useconds_t) and udelay(useconds_t) in > HelenOS/uspace/lib/c/generic/timer.c ?
usleep() calls a blocking syscall, while udelay() calls a non-blocking, busy waiting syscall. The latter is kind of weird, temporarily in the tree to suite some USB specification timing constraints. IIRC, the problem with using the former is that it is not usable due to the granularity of the kernel timeout mechanism. Jakub _______________________________________________ HelenOS-devel mailing list [email protected] http://lists.modry.cz/cgi-bin/listinfo/helenos-devel
