From 85868c03490fe60569a16e39875bc0564a4dba01 Mon Sep 17 00:00:00 2001 From: Thomas Van Lenten Date: Thu, 8 Nov 2018 18:48:26 -0500 Subject: Revert "Fix up a race condition in GTMSimpleWorkerThread" This reverts commit 585330a68d00c4d76927ff7bf4829471944358ab. --- Foundation/GTMNSThread+Blocks.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'Foundation/GTMNSThread+Blocks.h') 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 -- cgit v1.2.3