28 #import <Cocoa/Cocoa.h> 43 if (![NSThread isMultiThreaded])
45 NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
46 NSThread *thread = [[NSThread alloc] init];
47 SEL threadSelector =
@selector(run);
48 [NSThread detachNewThreadSelector:threadSelector toTarget:thread withObject:nil];
52 NSAutoreleasePool *pool =
nullptr;
53 pool = [[NSAutoreleasePool alloc] init];
61 NSAutoreleasePool *pool = (NSAutoreleasePool*) m_pool;