[linux-audio-dev] microsleeping

Lee Revell rlrevell at joe-job.com
Thu May 12 22:53:23 UTC 2005


On Thu, 2005-05-12 at 17:50 -0400, Paul Davis wrote:
> >i'm trying to sleep for some very low time slices ... about 100 to 1000
> >us ...
> >but i can't get below about 1 ms ... are there any workarounds to sleep
> >for very small time slices?
> >
> >i tested nanosleep(), usleep() and select(0, 0, 0, 0, &timout) ...
> 
> on a normal kernel, there's no way around this. the only possibility
> is with a kernel running the hi-res timer patch. even then, its only a
> possibility. 

Why do you say it's only a possibility?  AFAIK the high res timer patch
works fine on most hardware...

Lee  




More information about the Linux-audio-dev mailing list