sensitivity.io for iOS & macOS  1.1.4
ThreadPool.h
1 //
2 // ThreadPool.h
3 //
4 // Created by Andreea ERDELYI <andreea.erdelyi@cososys.com>
5 //
6 // Copyright (C) 2017 CoSoSys Ltd team@sensitivity.io
7 // CoSoSys Ltd. All rights reserved.
8 // Please see the COPYING for more details.
9 //
10 
11 #import <Foundation/Foundation.h>
12 
18 @interface ThreadPool : NSObject
19 
20 - (instancetype _Null_unspecified) init NS_UNAVAILABLE;
21 + (instancetype _Null_unspecified) new NS_UNAVAILABLE;
22 - (instancetype _Null_unspecified) copy NS_UNAVAILABLE;
23 
32 - (BOOL) setMaxThreadCount:(NSUInteger)maxThreadCount withError:(NSError * _Nullable * _Nullable)error;
40 - (BOOL) maxThreadCount:(NSUInteger* _Nonnull)maxThreadCount withError:(NSError * _Nullable * _Nullable)error;
41 
51 - (BOOL) timedWait:(NSUInteger)msecs forDone:(BOOL* _Nonnull)done withError:(NSError * _Nullable * _Nullable)error;
58 - (BOOL) waitForDoneWithError:(NSError * _Nullable * _Nullable)error;
59 
67 - (BOOL) activeThreadCount:(NSUInteger* _Nonnull)activeThreadCount withError:(NSError * _Nullable * _Nullable)error;
68 
80 - (BOOL) setExpiryTimeout:(NSInteger)expiryTimeout withError:(NSError * _Nullable * _Nullable)error;
88 - (BOOL) expiryTimeout:(NSInteger* _Nonnull)expiryTimeout withError:(NSError * _Nullable * _Nullable)error;
89 
90 @end
Definition: ThreadPool.h:18