mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-01 20:40:53 +00:00
avoid warnings about missing autorelease pool
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27256 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
2b296165b4
commit
a115756538
1 changed files with 2 additions and 0 deletions
|
@ -9,6 +9,7 @@ static NSArray *array;
|
|||
@implementation SyncTest
|
||||
- (void) sayHello
|
||||
{
|
||||
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
|
||||
NSLog(@"Before the sync block %s\n",[[[NSThread currentThread] description] cString]);
|
||||
@synchronized(array) {
|
||||
NSLog(@"In the sync block %s:%d\n",[[[NSThread currentThread] description] cString], [NSThread isMainThread]);
|
||||
|
@ -17,6 +18,7 @@ static NSArray *array;
|
|||
NSLog(@"Done waiting\n");
|
||||
}
|
||||
NSLog(@"After the sync block %s\n",[[[NSThread currentThread] description] cString]);
|
||||
[pool release];
|
||||
}
|
||||
@end
|
||||
|
||||
|
|
Loading…
Reference in a new issue