[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Sleep in NSLock.m
From: |
Roland Schwingel |
Subject: |
Sleep in NSLock.m |
Date: |
Thu, 12 Sep 2002 12:29:40 +0200 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.1) Gecko/20020826 |
Hi...
While exploring the actual sources (base 1.5.0) I found a
sleep(1)
in -[NSLock lockBeforeDate:] Line 168
In order to be compatible with windows (where it is differently defined)
shouldn't it better read
like this?
#ifdef HAVE_USLEEP
usleep ((int)(1*1000000));
#else
#if defined(__MINGW__)
Sleep (1*1000);
#else
sleep ((int)1);
#endif
#endif
What do you think?
Greetings,
Roland
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Sleep in NSLock.m,
Roland Schwingel <=