sched: add support for output file event

This allows waiting for non-blocking write operations.
This commit is contained in:
Miroslav Lichvar
2016-06-22 15:14:25 +02:00
parent d8d096aa54
commit 57fc2ff1be
2 changed files with 35 additions and 24 deletions

View File

@@ -53,6 +53,7 @@ extern void SCH_Finalise(void);
/* File events */
#define SCH_FILE_INPUT 1
#define SCH_FILE_OUTPUT 2
/* Register a handler for when select goes true on a file descriptor */
extern void SCH_AddFileHandler(int fd, int events, SCH_FileHandler handler, SCH_ArbitraryArgument arg);