Searched defs:reactor_object_t (Results 1 – 2 of 2) sorted by relevance
50 struct reactor_object_t { struct51 int fd; // the file descriptor to monitor for events.52 void *context; // a context that's passed back to the *_ready functions.53 reactor_t *reactor; // the reactor instance this object is registered with.54 pthread_mutex_t lock; // protects the lifetime of this object and all variables.56 …void (*read_ready)(void *context); // function to call when the file descriptor becomes readable.57 …oid (*write_ready)(void *context); // function to call when the file descriptor becomes writeable.
30 typedef struct reactor_object_t reactor_object_t; typedef