16 #ifdef CVMFS_ENABLE_INOTIFY
24 namespace file_watcher {
36 , control_pipe_to_back_()
37 , control_pipe_to_front_()
48 #ifdef CVMFS_ENABLE_INOTIFY
121 "FileWatcher - Could not add watch for file %s. Retrying.",
int control_pipe_to_back_[2]
void RegisterFilter(const std::string &file_path, EventHandler *handler)
static const unsigned kMaxDelay
static FileWatcher * Create()
assert((mem||(size==0))&&"Out Of Memory")
static void * BackgroundThread(void *d)
static const unsigned kResetDelay
virtual bool RunEventLoop(const HandlerMap &handler_map, int read_pipe, int write_pipe)=0
void MakePipe(int pipe_fd[2])
bool ReadHalfPipe(int fd, void *buf, size_t nbyte, unsigned timeout_ms)
static const unsigned kInitialDelay
int control_pipe_to_front_[2]
void RegisterHandler(const std::string &file_path, EventHandler *handler)
std::map< int, WatchRecord > watch_records_
virtual int TryRegisterFilter(const std::string &file_path)=0
void WritePipe(int fd, const void *buf, size_t nbyte)
void ClosePipe(int pipe_fd[2])
CVMFS_EXPORT void LogCvmfs(const LogSource source, const int mask, const char *format,...)