mirror of
https://github.com/gnustep/libs-base.git
synced 2025-06-01 09:02:01 +00:00
* Headers/Additions/GNUstepBase/GSVersionMacros.h: Add
defines for earlier version of Mac OS X back to 10.0. * Source/synchronization.m: Correct a problem found during testing. * Testing/synctest/main.m: Updated test. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27136 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
0ac29f22e7
commit
42ce7ccd01
4 changed files with 18 additions and 7 deletions
|
@ -9,14 +9,14 @@ static NSArray *array;
|
|||
@implementation SyncTest
|
||||
- (void) sayHello
|
||||
{
|
||||
NSLog(@"Before the sync block %@",[NSThread currentThread]);
|
||||
NSLog(@"Before the sync block %s\n",[[[NSThread currentThread] description] cString]);
|
||||
@synchronized(array) {
|
||||
NSLog(@"In the sync block %@:%d",[NSThread currentThread],[NSThread isMainThread]);
|
||||
NSLog(@"Waiting five seconds...");
|
||||
NSLog(@"In the sync block %s:%d\n",[[[NSThread currentThread] description] cString], [NSThread isMainThread]);
|
||||
NSLog(@"Waiting five seconds...\n");
|
||||
[NSThread sleepForTimeInterval: 5.0];
|
||||
NSLog(@"Done waiting");
|
||||
NSLog(@"Done waiting\n");
|
||||
}
|
||||
NSLog(@"After the sync block %@",[NSThread currentThread]);
|
||||
NSLog(@"After the sync block %s\n",[[[NSThread currentThread] description] cString]);
|
||||
}
|
||||
@end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue