From 4c4ce6e5388e733741ff830419452e4a15bf31fa Mon Sep 17 00:00:00 2001 From: "gtm.daemon" Date: Wed, 14 Nov 2012 19:30:11 +0000 Subject: [Author: dmaclach] Add GTMSimpleWorkerThread for easily creating a thread that just handles blocks and performSelector calls. R=thomasvl DELTA=52 (52 added, 0 deleted, 0 changed) --- Foundation/GTMNSThread+Blocks.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'Foundation/GTMNSThread+Blocks.h') diff --git a/Foundation/GTMNSThread+Blocks.h b/Foundation/GTMNSThread+Blocks.h index 755f1ce..4d92b31 100644 --- a/Foundation/GTMNSThread+Blocks.h +++ b/Foundation/GTMNSThread+Blocks.h @@ -36,3 +36,14 @@ @end #endif // NS_BLOCKS_AVAILABLE + +// A simple thread that does nothing but handle performBlock and +// performSelector calls. +@interface GTMSimpleWorkerThread : NSThread { + @private + CFRunLoopRef runLoop_; +} + +// Will stop the thread. +- (void)stop; +@end -- cgit v1.2.3