mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
reliability and formatting tweaks
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32475 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
0828fb4467
commit
a317c6bd8a
2 changed files with 13 additions and 3 deletions
|
@ -1,3 +1,10 @@
|
|||
2011-03-06 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* config/config.initialize.m: Correct formatting. Increase time
|
||||
allowed for threads to do their job, to minimise the chance of a
|
||||
heavily loaded machine giving a wrong result because threads
|
||||
don't get scheduled in time.
|
||||
|
||||
2011-03-06 Thomas Gamper <icicle@cg.tuwien.ac.at>
|
||||
|
||||
* config/config.initialize.m: add missing include to fix build.
|
||||
|
|
|
@ -47,11 +47,11 @@ main()
|
|||
{
|
||||
pthread_t t1;
|
||||
pthread_t t2;
|
||||
unsigned counter = 0;
|
||||
unsigned counter;
|
||||
|
||||
if (0 == pthread_create(&t1, 0, test, 0))
|
||||
{
|
||||
while (0 == initialize_entered && counter++ < 3)
|
||||
for (counter = 0; 0 == initialize_entered && counter < 5; counter++)
|
||||
{
|
||||
mySleep(1);
|
||||
}
|
||||
|
@ -78,7 +78,10 @@ main()
|
|||
* +initialize and for both threads to call +class
|
||||
*/
|
||||
may_proceed = YES;
|
||||
mySleep(1);
|
||||
for (counter = 0; 2 > class_entered && counter < 5; counter++)
|
||||
{
|
||||
mySleep(1);
|
||||
}
|
||||
|
||||
if (2 == class_entered)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue