aboutsummaryrefslogtreecommitdiff
path: root/Foundation/GTMNSThread+Blocks.h
diff options
context:
space:
mode:
Diffstat (limited to 'Foundation/GTMNSThread+Blocks.h')
-rw-r--r--Foundation/GTMNSThread+Blocks.h17
1 files changed, 8 insertions, 9 deletions
diff --git a/Foundation/GTMNSThread+Blocks.h b/Foundation/GTMNSThread+Blocks.h
index 17bfbc7..c6e5ebc 100644
--- a/Foundation/GTMNSThread+Blocks.h
+++ b/Foundation/GTMNSThread+Blocks.h
@@ -38,15 +38,14 @@
#endif // NS_BLOCKS_AVAILABLE
-// A simple thread that does nothing but handle performBlock and
-// performSelector calls.
-@interface GTMSimpleWorkerThread : NSThread {
- @private
- CFRunLoopRef runLoop_;
- NSConditionLock *runLock_;
-}
-
-// Will stop the thread, blocking till the thread exits.
+// A simple thread that does nothing but runs a runloop.
+// That means that it can handle performBlock and performSelector calls.
+@interface GTMSimpleWorkerThread : NSThread
+
+// If called from another thread, blocks until worker thread is done.
+// If called from the worker thread it is equivalent to cancel and
+// returns immediately.
+// Note that "stop" will set the isCancelled on the thread.
- (void)stop;
@end