diff options
Diffstat (limited to 'Foundation/GTMNSThread+Blocks.h')
-rw-r--r-- | Foundation/GTMNSThread+Blocks.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/Foundation/GTMNSThread+Blocks.h b/Foundation/GTMNSThread+Blocks.h index 4240b4c..17bfbc7 100644 --- a/Foundation/GTMNSThread+Blocks.h +++ b/Foundation/GTMNSThread+Blocks.h @@ -40,5 +40,13 @@ // A simple thread that does nothing but handle performBlock and // performSelector calls. -@interface GTMSimpleWorkerThread : NSThread +@interface GTMSimpleWorkerThread : NSThread { + @private + CFRunLoopRef runLoop_; + NSConditionLock *runLock_; +} + +// Will stop the thread, blocking till the thread exits. +- (void)stop; + @end |