Re: There is a sleep() call in idGlobal!

Giganews Newsgroups
Subject: Re: There is a sleep() call in idGlobal!
Posted by:  Remy Lebeau (TeamB) (gambit47.no.spam@no.spam.yahoo.com)
Date: Tue, 23 Mar 2004

"Martin James" <mjames_falc…@dial.pipex.com> wrote in message
news:E2E47EFFA696E240mjames_falc…@dial.pipex.com...

> What does this method, (esp WSselect) do??

Exactly what the Win32 API Sleep() does.  If you look closer, you can see
that IdGlobal.Sleep() is calling Windows.Sleep() under Win32 platforms.
Linux doesn't have a Sleep() function, so Indy is using the socket stack's
WSSelect() function to simulate a Sleep().

> Could Indy please rename this procedure!!!!

You should change your own code to qualify your calls to Sleep() by
prefixing it with the global namespace:

    ::Sleep(somevalue);    // <-- notice the colons

Gambit

Replies

In response to

There is a sleep() call in idGlobal! posted by Martin James on Tue, 23 Mar 2004