mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +00:00
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:
parent
abfcff669d
commit
781772708f
3 changed files with 21 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue