Minor mingw fixes

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@15539 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-Macdonald 2003-01-07 18:33:51 +00:00
parent abfcff669d
commit 781772708f
3 changed files with 21 additions and 3 deletions

View file

@ -162,11 +162,15 @@ NSString *NSRecursiveLockException = @"NSRecursiveLockException";
{
return NO;
}
#if defined(__MINGW__)
Sleep(250); // 0.25 second
#else
/*
* This should probably be more accurate like usleep(250)
* but usleep is known to NOT be thread safe under all architectures.
*/
sleep(1);
#endif
}
return YES;
}
@ -386,11 +390,15 @@ NSString *NSRecursiveLockException = @"NSRecursiveLockException";
{
return NO;
}
#if defined(__MINGW__)
Sleep(250); // 0.25 second
#else
/*
* This should probably be more accurate like usleep(250)
* but usleep is known to NOT be thread safe under all architectures.
*/
sleep(1);
#endif
}
return YES;
}
@ -560,11 +568,15 @@ NSString *NSRecursiveLockException = @"NSRecursiveLockException";
{
return NO;
}
#if defined(__MINGW__)
Sleep(250); // 0.25 second
#else
/*
* This should probably be more accurate like usleep(250)
* but usleep is known to NOT be thread safe under all architectures.
*/
sleep(1);
#endif
}
return YES;
}