diff options
author | gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3> | 2012-11-15 01:00:14 +0000 |
---|---|---|
committer | gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3> | 2012-11-15 01:00:14 +0000 |
commit | 9f7bc647094f83ae63915d7d1d2984f78c812d8a (patch) | |
tree | 167289efb0b0daaf4dbe7c30ee5747d1529a88fc /Foundation/GTMNSThread+Blocks.h | |
parent | f8a42f9773fee05642564c74f157497e41d02bde (diff) |
[Author: aharper]
Exclude on 10.4 and only set name when pthread_setname_np is available
(10.6 and later).
R=dmaclach,thomasvl
APPROVED=dmaclach
DELTA=19 (17 added, 0 deleted, 2 changed)
Diffstat (limited to 'Foundation/GTMNSThread+Blocks.h')
-rw-r--r-- | Foundation/GTMNSThread+Blocks.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Foundation/GTMNSThread+Blocks.h b/Foundation/GTMNSThread+Blocks.h index 4d92b31..7754439 100644 --- a/Foundation/GTMNSThread+Blocks.h +++ b/Foundation/GTMNSThread+Blocks.h @@ -37,6 +37,10 @@ #endif // NS_BLOCKS_AVAILABLE +// [NSObject performSelector:onThread:...] 10.5 and later, so this makes no +// sense on any earlier SDK. +#if GTM_IPHONE_SDK || (MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_5) + // A simple thread that does nothing but handle performBlock and // performSelector calls. @interface GTMSimpleWorkerThread : NSThread { @@ -47,3 +51,5 @@ // Will stop the thread. - (void)stop; @end + +#endif // GTM_IPHONE_SDK || (MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_5) |