[PD] usleep() equivalent to Sleep() ?

Olaf Matthes olaf.matthes at gmx.de
Sun May 12 22:42:17 CEST 2002


Hi,

usleep() takes time in microseconds, Window's sleep() needs milliseconds... this
makes sleep() sleep 1000 times longer than wanted if used with the same value...

Olaf

"joge ." schrieb:

> hi all ,
>
> i am trying to compile two externals of yves's on to windows .   there is
> one issue with threads [i am using pthreads for maximum unix compatibility]
> that i seem to be having though .  there is no usleep() for windows as far
> as i can tell .  however i did fine a function called Sleep() .  from my
> brief browsing of code on the internet .  i thought the two for the more
> part were equivalent in their functionality :  to put a thread/process to
> sleep for a specified amount of time .  however , i seem to get *buffer
> overruns* when i play with the externs .  everything compiles fine and is
> even loaded fine , it seems to be when the external tries to draw to the
> screen that i get the buffer overrun .  the externals i am trying to compile
> over are sonogram~ 0.9 and cooled~ 0.6 .
>
> thanks .
>
> joge .




More information about the Pd-list mailing list