From 8cd904225c05d792975f2d8090dce73f620c63d8 Mon Sep 17 00:00:00 2001 From: Richard Frith-Macdonald Date: Thu, 13 Jul 2017 09:41:17 +0100 Subject: [PATCH] Improve documentation of -terminate: method --- GSIOThreadPool.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/GSIOThreadPool.h b/GSIOThreadPool.h index 3963e8e..6503fea 100644 --- a/GSIOThreadPool.h +++ b/GSIOThreadPool.h @@ -45,7 +45,11 @@ typedef unsigned int NSUInteger; NSUInteger _count; /** Number of times acquired */ } /** Terminates the thread by the specified date (as soon as possible if - * the date is nil or is in the past). + * the date is nil or is in the past).
+ * If called from another thread, this method asks the receiver thread to + * perform the method, and waits (running the run loop in the calling + * thread) until either the receiver thread finishes executing or until + * the timeout date (when) is reached. */ - (void) terminate: (NSDate*)when;