diff options
author | Thomas Van Lenten <thomasvl@google.com> | 2018-11-08 18:48:26 -0500 |
---|---|---|
committer | Thomas Van Lenten <thomasvl@google.com> | 2018-11-08 18:49:10 -0500 |
commit | 85868c03490fe60569a16e39875bc0564a4dba01 (patch) | |
tree | 4b231f0a39aa6e4a7890a25486b01eff744ecc1a /Foundation/GTMNSThread+Blocks.h | |
parent | 585330a68d00c4d76927ff7bf4829471944358ab (diff) |
Revert "Fix up a race condition in GTMSimpleWorkerThread"
This reverts commit 585330a68d00c4d76927ff7bf4829471944358ab.
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 |