mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-07-31 15:37:01 +00:00

git-subtree-dir: submodules/SSignalKit git-subtree-mainline: 4459dc5b47e7db4ea1adb3a43a4324d1c2f9feab git-subtree-split: 359b2ee7c9f20f99f221f78e307369ef5ad0ece2
16 lines
403 B
Objective-C
16 lines
403 B
Objective-C
#import <Foundation/Foundation.h>
|
|
|
|
#import <SSignalKit/SThreadPoolTask.h>
|
|
#import <SSignalKit/SThreadPoolQueue.h>
|
|
|
|
@interface SThreadPool : NSObject
|
|
|
|
- (instancetype)initWithThreadCount:(NSUInteger)threadCount threadPriority:(double)threadPriority;
|
|
|
|
- (void)addTask:(SThreadPoolTask *)task;
|
|
|
|
- (SThreadPoolQueue *)nextQueue;
|
|
- (void)_workOnQueue:(SThreadPoolQueue *)queue block:(void (^)())block;
|
|
|
|
@end
|