aboutsummaryrefslogtreecommitdiff
path: root/Foundation
diff options
context:
space:
mode:
authorGravatar gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3>2012-11-14 21:00:10 +0000
committerGravatar gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3>2012-11-14 21:00:10 +0000
commitf8a42f9773fee05642564c74f157497e41d02bde (patch)
tree90c525602f99eccb677fd7028493e235f8ee2422 /Foundation
parent4c4ce6e5388e733741ff830419452e4a15bf31fa (diff)
[Author: dmaclach]
Fix GTMNSThread+Blocks compiling on older compilers. R=thomasvl DELTA=12 (6 added, 6 deleted, 0 changed)
Diffstat (limited to 'Foundation')
-rw-r--r--Foundation/GTMNSThread+Blocks.m12
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_);
}