mirror of
https://github.com/thunderbrewhq/squall.git
synced 2025-12-12 10:32:29 +00:00
feat(thread): add thread functions
This commit is contained in:
parent
d0487caba3
commit
266bdc7737
16 changed files with 523 additions and 0 deletions
19
storm/thread/mac/SThreadRunner.h
Normal file
19
storm/thread/mac/SThreadRunner.h
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
#ifndef STORM_THREAD_MAC_S_THREAD_RUNNER_H
|
||||
#define STORM_THREAD_MAC_S_THREAD_RUNNER_H
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
struct SThreadParmBlock;
|
||||
|
||||
@interface SThreadRunner : NSObject
|
||||
|
||||
@property SThreadParmBlock* m_params;
|
||||
@property(assign) NSAutoreleasePool* m_autoreleasePool;
|
||||
|
||||
- (instancetype)init:(SThreadParmBlock*)params;
|
||||
|
||||
- (void)run;
|
||||
|
||||
@end
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue