небольшая чистка и улучшение кода, попытка исправить picloud
This commit is contained in:
@@ -37,22 +37,23 @@ public:
|
||||
|
||||
void create();
|
||||
void destroy();
|
||||
#ifdef WINDOWS
|
||||
bool wait();
|
||||
#else
|
||||
enum SelectRole {
|
||||
|
||||
enum CheckRole { // UNIX only
|
||||
CheckRead,
|
||||
CheckWrite
|
||||
CheckWrite,
|
||||
CheckExeption
|
||||
};
|
||||
bool wait(int fd, SelectRole role = CheckRead);
|
||||
#endif
|
||||
bool wait(int fd = -1, CheckRole role = CheckRead);
|
||||
|
||||
void interrupt();
|
||||
bool isCreate() const;
|
||||
|
||||
#ifdef WINDOWS
|
||||
HANDLE event = NULL;
|
||||
#else
|
||||
void * getEvent() const; // WINDOWS only
|
||||
|
||||
private:
|
||||
#ifdef WINDOWS
|
||||
void * event = nullptr;
|
||||
#else
|
||||
int pipe_fd[2] = {0, 0};
|
||||
fd_set fds[3];
|
||||
enum {
|
||||
|
||||
Reference in New Issue
Block a user