Re[2]: [PHP-DEV] usleep() on win32

2006-01-26 Thread Tom Rogers
Hi Wez, Friday, January 27, 2006, 11:24:33 AM, you wrote: WF> We've had working usleep on windows since november 2003 in the PHP 5 branch. WF> Check out win32/time.c WF> --Wez. Thanks for the pointer, was using php-gtk1 so php5 was out of the question and a quick look at the same file showed no

Re: [PHP-DEV] usleep() on win32

2006-01-26 Thread Wez Furlong
We've had working usleep on windows since november 2003 in the PHP 5 branch. Check out win32/time.c --Wez. On 1/27/06, Tom Rogers <[EMAIL PROTECTED]> wrote: > Hi > > Here is a small change to usleep so it will work with win32. > It is very useful for tight while loops when using socket functions

[PHP-DEV] usleep() on win32

2006-01-26 Thread Tom Rogers
Hi Here is a small change to usleep so it will work with win32. It is very useful for tight while loops when using socket functions and reduces cpu load from 100% to 0%-2% (on my win2k box) by just adding usleep(1000); after the while(). (Code snippet was taken from pgsql) Diff is from php-4.4 cv