Re: [fpc-devel] fpNanoSleep vs Select()

2005-10-07 Thread Jonas Maebe
On 7 okt 2005, at 10:26, Michael Van Canneyt wrote: There is no reason against this, except that I'm not sure fpNanoSleep() exists on all platforms. Select() does. It should exist on most *nixes: The nanosleep() function conforms to IEEE Std 1003.1b-1993 (``POSIX. 1''). Jonas

Re: [fpc-devel] fpNanoSleep vs Select()

2005-10-07 Thread Michael Van Canneyt
On Fri, 7 Oct 2005, Ales Katona wrote: Hello, I'd like to ask why Sleep() function in unix world uses Select() instead of fpNanoSleep()? Is there a particular reason? After a somewhat riggid discussion on the channel yesterday I came up testing threading using sleep() and nanosleep(). The di

[fpc-devel] fpNanoSleep vs Select()

2005-10-07 Thread Ales Katona
Hello, I'd like to ask why Sleep() function in unix world uses Select() instead of fpNanoSleep()? Is there a particular reason? After a somewhat riggid discussion on the channel yesterday I came up testing threading using sleep() and nanosleep(). The difference in speed is huge. I'm prepared to