#include <NSThreadOOExtensions.h>
Definition at line 33 of file NSThreadOOExtensions.h.
◆ ooSetCurrentThreadName:
| + (void) ooSetCurrentThreadName: |
|
(NSString*) | name |
|
Definition at line 36 of file NSThreadOOExtensions.m.
36 :(NSString*)name
37{
38
39 NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init];
40
41 [[NSThread currentThread] setName:name];
42
43#if OO_HAVE_PTHREAD_SETNAME_NP
44
45
46
47 pthread_setname_np([name UTF8String]);
48#endif
49
50 [pool release];
51}
The documentation for this category was generated from the following files: