CernVM-FS  2.12.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
file_watcher_kqueue.h
Go to the documentation of this file.
1 
5 #ifndef CVMFS_FILE_WATCHER_KQUEUE_H_
6 #define CVMFS_FILE_WATCHER_KQUEUE_H_
7 
8 #include "file_watcher.h"
9 
10 #include <map>
11 #include <string>
12 
13 namespace file_watcher {
14 
16  public:
18  virtual ~FileWatcherKqueue();
19 
20  protected:
21  virtual bool RunEventLoop(const FileWatcher::HandlerMap& handler,
22  int read_pipe, int write_pipe);
23 
24  virtual int TryRegisterFilter(const std::string& file_path);
25 
26  private:
27  void RemoveFilter(int fd);
28 
29  int kq_;
30 };
31 
32 } // namespace file_watcher
33 
34 #endif // CVMFS_FILE_WATCHER_KQUEUE_H_
virtual int TryRegisterFilter(const std::string &file_path)
virtual bool RunEventLoop(const FileWatcher::HandlerMap &handler, int read_pipe, int write_pipe)
std::map< std::string, EventHandler * > HandlerMap
Definition: file_watcher.h:64