diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2014-05-01 16:44:37 -0700 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2014-05-01 16:44:37 -0700 |
commit | 186b0f62ebf34a446730d45a0a27a51be335df24 (patch) | |
tree | 4ef2adef01363264cc00ed923455b192a20589a1 /env_universal_common.h | |
parent | 60c8012e9e8472330e6c77aa5755e4ec1ebb6a1a (diff) |
Early implementation of inotify-based universal variable notifier for
Linux
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 254a9f39..f973b002 100644 --- a/env_universal_common.h +++ b/env_universal_common.h @@ -280,6 +280,7 @@ public: { strategy_default, strategy_shmem_polling, + strategy_inotify, strategy_notifyd }; @@ -297,7 +298,7 @@ public: virtual ~universal_notifier_t(); /* Factory constructor. Free with delete */ - static universal_notifier_t *new_notifier_for_strategy(notifier_strategy_t strat); + static universal_notifier_t *new_notifier_for_strategy(notifier_strategy_t strat, const wchar_t *test_path = NULL); /* Default instance. Other instances are possible for testing. */ static universal_notifier_t &default_notifier(); @@ -317,8 +318,8 @@ public: /* Recommended delay between polls. A value of 0 means no polling required (so no timeout) */ virtual unsigned long usec_delay_between_polls() const; - /* The notification_fd is readable; drain it */ - virtual void drain_notification_fd(int 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); }; std::string get_machine_identifier(); |