33#define OO_HAVE_PTHREAD_SETNAME_NP OOLITE_MAC_OS_X
36@implementation NSThread (OOExtensions)
38+ (void) ooSetCurrentThreadName:(NSString *)name
41 NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
43 [[NSThread currentThread] setName:name];
45#if OO_HAVE_PTHREAD_SETNAME_NP
49 pthread_setname_np([name UTF8String]);