mirror of
https://github.com/gnustep/libs-base.git
synced 2025-06-04 02:20:48 +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
c5e74e629e
commit
219c8760e9
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…
Add table
Add a link
Reference in a new issue