[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] Nanosleep for freemint?



2010/6/20 m0n0 <ole@monochrom.net>:
>
> Hello there,
>
> does anyone know about an freemint alternative to nanosleep? I need a
> solution that can sleep for 100 milliseconds. I could use GEM evnt_timer,
> but that requires appl_init() ...


You have in mintlib "usleep" function:

http://sparemint.org/cgi-bin/cvsweb/mintlib/posix/usleep.c?rev=1.2&content-type=text/x-cvsweb-markup

http://sparemint.org/cgi-bin/cvsweb/mintlib/include/unistd.h?rev=1.13&content-type=text/x-cvsweb-markup