move all the child/fd/kevent monitoring to a dedicated thread / class.

This commit is contained in:
Kelvin Sherlock
2018-01-31 21:17:31 -05:00
parent 8d282293f0
commit e0bc21d663
4 changed files with 279 additions and 127 deletions
+2 -4
View File
@@ -25,10 +25,6 @@
NSObject <Emulator> *_emulator;
NSThread * _thread;
int _fd;
std::atomic<pid_t> _pid;
}
@property (nonatomic, retain) NSDictionary *parameters;
@@ -39,5 +35,7 @@
@property (nonatomic, retain) NSObject<Emulator> *emulator;
-(void)initPTY;
-(void)childFinished: (int)status;
-(void)processData: (const void *)buffer size: (size_t)size;
@end