CernVM-FS
2.12.0
|
#include <file_watcher_kqueue.h>
Public Member Functions | |
FileWatcherKqueue () | |
virtual | ~FileWatcherKqueue () |
Public Member Functions inherited from file_watcher::FileWatcher | |
FileWatcher () | |
virtual | ~FileWatcher () |
void | RegisterHandler (const std::string &file_path, EventHandler *handler) |
bool | Spawn () |
void | Stop () |
Protected Member Functions | |
virtual bool | RunEventLoop (const FileWatcher::HandlerMap &handler, int read_pipe, int write_pipe) |
virtual int | TryRegisterFilter (const std::string &file_path) |
Protected Member Functions inherited from file_watcher::FileWatcher | |
void | RegisterFilter (const std::string &file_path, EventHandler *handler) |
Private Member Functions | |
void | RemoveFilter (int fd) |
Private Attributes | |
int | kq_ |
Additional Inherited Members | |
Public Types inherited from file_watcher::FileWatcher | |
typedef std::map< std::string, EventHandler * > | HandlerMap |
Static Public Member Functions inherited from file_watcher::FileWatcher | |
static FileWatcher * | Create () |
Protected Attributes inherited from file_watcher::FileWatcher | |
std::map< int, WatchRecord > | watch_records_ |
Static Protected Attributes inherited from file_watcher::FileWatcher | |
static const unsigned | kInitialDelay = 1000 |
static const unsigned | kMaxDelay = 10000 |
static const unsigned | kResetDelay = 50000 |
Definition at line 15 of file file_watcher_kqueue.h.
file_watcher::FileWatcherKqueue::FileWatcherKqueue | ( | ) |
Definition at line 23 of file file_watcher_kqueue.cc.
|
virtual |
Definition at line 25 of file file_watcher_kqueue.cc.
|
private |
Definition at line 129 of file file_watcher_kqueue.cc.
Referenced by RunEventLoop().
|
protectedvirtual |
Implements file_watcher::FileWatcher.
Definition at line 27 of file file_watcher_kqueue.cc.
|
protectedvirtual |
Implements file_watcher::FileWatcher.
Definition at line 137 of file file_watcher_kqueue.cc.
|
private |
Definition at line 29 of file file_watcher_kqueue.h.
Referenced by RemoveFilter(), RunEventLoop(), and TryRegisterFilter().