o use NSTimeIntervalSleep instead of usleep

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@18177 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Manuel Guesdon 2003-11-24 12:04:01 +00:00
parent 60b14cbd95
commit da415be0c7

View file

@ -164,7 +164,7 @@ RCS_ID("$Id$")
currentTime=(int)time(NULL);
if (isCheckedOut) // Session already check out. Wait...
{
usleep(10000); // sleep for 10 ms
NSTimeIntervalSleep(0.010); // sleep for 10 ms
if (tryCount%100==0)
NSLog(@"Try check out %@ for %d seconds (tryCount=%d)",aSessionID,(currentTime-startTime),tryCount);
};