diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2014-05-04 15:06:40 -0700 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2014-05-04 15:06:40 -0700 |
commit | f27232bd0aa10be26aeb268b201a6b77bab08a1c (patch) | |
tree | a4e89198a5732111b7d27d499ea2030624ce20c2 /env_universal_common.h | |
parent | 7e44bcfd8a3b0947bdc7e325671ec5fc4401cb21 (diff) |
Initial work on strategy_named_pipe universal notifier.
Diffstat (limited to 'env_universal_common.h')
-rw-r--r-- | env_universal_common.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/env_universal_common.h b/env_universal_common.h index f973b002..2c7fef1f 100644 --- a/env_universal_common.h +++ b/env_universal_common.h @@ -280,6 +280,7 @@ public: { strategy_default, strategy_shmem_polling, + strategy_named_pipe, strategy_inotify, strategy_notifyd }; @@ -303,9 +304,6 @@ public: /* Default instance. Other instances are possible for testing. */ static universal_notifier_t &default_notifier(); - /* Returns the fd from which to watch for events, or -1 if none */ - virtual int notification_fd(); - /* Does a fast poll(). Returns true if changed. */ virtual bool poll(); @@ -318,6 +316,9 @@ public: /* Recommended delay between polls. A value of 0 means no polling required (so no timeout) */ virtual unsigned long usec_delay_between_polls() const; + /* Returns the fd from which to watch for events, or -1 if none */ + virtual int notification_fd(); + /* The notification_fd is readable; drain it. Returns true if a notification is considered to have been posted. */ virtual bool drain_notification_fd(int fd); }; |