diff options
Diffstat (limited to 'Foundation')
-rw-r--r-- | Foundation/GTMNSThread+Blocks.m | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Foundation/GTMNSThread+Blocks.m b/Foundation/GTMNSThread+Blocks.m index 6757363..7b5a0d1 100644 --- a/Foundation/GTMNSThread+Blocks.m +++ b/Foundation/GTMNSThread+Blocks.m @@ -54,6 +54,12 @@ @implementation GTMSimpleWorkerThread +- (void)setThreadDebuggerName:(NSString *)name { + // [NSThread setName:] doesn't actually set the name in such a way that the + // debugger can see it. So we handle it here instead. + pthread_setname_np([name UTF8String]); +} + - (void)main { [self setThreadDebuggerName:[self name]]; @@ -69,12 +75,6 @@ CFRunLoopRun(); } -- (void)setThreadDebuggerName:(NSString *)name { - // [NSThread setName:] doesn't actually set the name in such a way that the - // debugger can see it. So we handle it here instead. - pthread_setname_np([name UTF8String]); -} - - (void)stop { CFRunLoopStop(runLoop_); } |