mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-02 04:41:05 +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
|
@implementation SyncTest
|
||||||
- (void) sayHello
|
- (void) sayHello
|
||||||
{
|
{
|
||||||
|
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
|
||||||
NSLog(@"Before the sync block %s\n",[[[NSThread currentThread] description] cString]);
|
NSLog(@"Before the sync block %s\n",[[[NSThread currentThread] description] cString]);
|
||||||
@synchronized(array) {
|
@synchronized(array) {
|
||||||
NSLog(@"In the sync block %s:%d\n",[[[NSThread currentThread] description] cString], [NSThread isMainThread]);
|
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(@"Done waiting\n");
|
||||||
}
|
}
|
||||||
NSLog(@"After the sync block %s\n",[[[NSThread currentThread] description] cString]);
|
NSLog(@"After the sync block %s\n",[[[NSThread currentThread] description] cString]);
|
||||||
|
[pool release];
|
||||||
}
|
}
|
||||||
@end
|
@end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue