diff options
author | gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3> | 2012-11-14 19:30:11 +0000 |
---|---|---|
committer | gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3> | 2012-11-14 19:30:11 +0000 |
commit | 4c4ce6e5388e733741ff830419452e4a15bf31fa (patch) | |
tree | 71858b4610f3779b858cd5d68c2434c961b91436 /Foundation/GTMNSThread+Blocks.h | |
parent | d1623bbd42d3c4057d12dcec6297b63f27d4300e (diff) |
[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)
Diffstat (limited to 'Foundation/GTMNSThread+Blocks.h')
-rw-r--r-- | Foundation/GTMNSThread+Blocks.h | 11 |
1 files changed, 11 insertions, 0 deletions
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 |