mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-20 12:16:40 +00:00
NSThread bugfix in sleeping
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@3591 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
299fac65f5
commit
1567ea4084
3 changed files with 8 additions and 3 deletions
|
@ -196,9 +196,9 @@ void gnustep_base_thread_callback()
|
|||
while (delay > 0)
|
||||
{
|
||||
#ifdef HAVE_USLEEP
|
||||
usleep (delay*1000000);
|
||||
usleep ((int)(delay*1000000));
|
||||
#else
|
||||
sleep (delay);
|
||||
sleep ((int)delay);
|
||||
#endif
|
||||
delay = [date timeIntervalSinceNow];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue