Oolite 1.91.0.7644-241112-7f5034b
Loading...
Searching...
No Matches
NSThread(OOExtensions) Category Reference

#include <NSThreadOOExtensions.h>

Class Methods

(void) + ooSetCurrentThreadName:
 

Detailed Description

Definition at line 34 of file NSThreadOOExtensions.h.

Method Documentation

◆ ooSetCurrentThreadName:

+ (void) ooSetCurrentThreadName: (NSString *) name

Definition at line 1 of file NSThreadOOExtensions.m.

38 :(NSString *)name
39{
40 // We may be called with no pool in place.
41 NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
42
43 [[NSThread currentThread] setName:name];
44
45#if OO_HAVE_PTHREAD_SETNAME_NP
46 /* Under Mac OS X 10.6, the name set by pthread_setname_np() is used in
47 crash reports, but, annoyingly, -[NSThread setName:] does not call it.
48 */
49 pthread_setname_np([name UTF8String]);
50#endif
51
52 [pool release];
53}

The documentation for this category was generated from the following files: