diff options
Diffstat (limited to 'selfwake.h')
-rw-r--r-- | selfwake.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -23,6 +23,7 @@ struct mog_selfpipe { struct mog_fd * mog_selfwake_new(void); void mog_selfwake_trigger(struct mog_fd *); void mog_selfwake_drain(struct mog_fd *); +#define mog_selfwake_put(mfd) mog_fd_put((mfd)) static inline void mog_selfwake_interrupt(void) {} void mog_selfwake_wait(struct mog_fd *); #else /* use Linux-only facilities like epoll_pwait or ppoll */ @@ -33,6 +34,7 @@ static inline void mog_selfwake_wait(struct mog_fd *mfd) static inline struct mog_fd * mog_selfwake_new(void) { return NULL; } static inline void mog_selfwake_trigger(struct mog_fd *mfd) {} static inline void mog_selfwake_drain(struct mog_fd *mfd) {} +static inline void mog_selfwake_put(struct mog_fd *mfd) {} static inline void mog_selfwake_interrupt(void) { CHECK(int, 0, kill(getpid(), SIGURG)); |