sched: add support for handling exceptions on descriptors

This commit is contained in:
Miroslav Lichvar
2016-09-26 12:16:42 +02:00
parent 411f4697ca
commit c169ad3f58
2 changed files with 34 additions and 8 deletions

View File

@@ -54,6 +54,7 @@ extern void SCH_Finalise(void);
/* File events */
#define SCH_FILE_INPUT 1
#define SCH_FILE_OUTPUT 2
#define SCH_FILE_EXCEPTION 4
/* 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);