mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
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
|