From f8a42f9773fee05642564c74f157497e41d02bde Mon Sep 17 00:00:00 2001 From: "gtm.daemon" Date: Wed, 14 Nov 2012 21:00:10 +0000 Subject: [Author: dmaclach] Fix GTMNSThread+Blocks compiling on older compilers. R=thomasvl DELTA=12 (6 added, 6 deleted, 0 changed) --- Foundation/GTMNSThread+Blocks.m | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'Foundation/GTMNSThread+Blocks.m') 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_); } -- cgit v1.2.3