#include <autoscan_inotify.h>
Definition at line 49 of file autoscan_inotify.h.
enum AutoscanInotify::watch_type_t [private] |
Definition at line 84 of file autoscan_inotify.h.
| AutoscanInotify::AutoscanInotify | ( | ) |
| virtual AutoscanInotify::~AutoscanInotify | ( | ) | [virtual] |
| void AutoscanInotify::addDescendant | ( | int | startPointWd, | |
| int | addWd, | |||
| zmm::Ref< AutoscanDirectory > | adir | |||
| ) | [private] |
| int AutoscanInotify::addMoveWatch | ( | zmm::String | path, | |
| int | removeWd, | |||
| int | parentWd | |||
| ) | [private] |
| zmm::Ref<WatchAutoscan> AutoscanInotify::getAppropriateAutoscan | ( | zmm::Ref< Wd > | wdObj, | |
| zmm::String | path | |||
| ) | [private] |
| zmm::Ref<WatchAutoscan> AutoscanInotify::getAppropriateAutoscan | ( | zmm::Ref< Wd > | wdObj, | |
| zmm::Ref< AutoscanDirectory > | adir | |||
| ) | [private] |
| int Object::getRefCount | ( | ) | [inherited] |
Definition at line 78 of file object.cc.
References zmm::Object::_ref_count, and atomic_get().
| zmm::Ref<WatchAutoscan> AutoscanInotify::getStartPoint | ( | zmm::Ref< Wd > | wdObj | ) | [private] |
| void AutoscanInotify::init | ( | ) |
| void AutoscanInotify::monitor | ( | zmm::Ref< AutoscanDirectory > | dir | ) |
Start monitoring a directory.
| int AutoscanInotify::monitorDirectory | ( | zmm::String | path, | |
| zmm::Ref< AutoscanDirectory > | adir, | |||
| zmm::String | normalizedAutoscanPath, | |||
| bool | startPoint, | |||
| zmm::Ref< zmm::Array< zmm::StringBase > > | pathArray = nil | |||
| ) | [private] |
| void AutoscanInotify::monitorNonexisting | ( | zmm::String | path, | |
| zmm::Ref< AutoscanDirectory > | adir, | |||
| zmm::String | normalizedAutoscanPath | |||
| ) | [private] |
| void AutoscanInotify::monitorUnmonitorRecursive | ( | zmm::String | startPath, | |
| bool | unmonitor, | |||
| zmm::Ref< AutoscanDirectory > | adir, | |||
| zmm::String | normalizedAutoscanPath, | |||
| bool | startPoint | |||
| ) | [private] |
| zmm::String AutoscanInotify::normalizePathNoEx | ( | zmm::String | path | ) | [private] |
| void Object::operator delete | ( | void * | ptr | ) | [static, inherited] |
| void * Object::operator new | ( | size_t | size | ) | [static, inherited] |
| void AutoscanInotify::recheckNonexistingMonitor | ( | int | curWd, | |
| zmm::Ref< zmm::Array< zmm::StringBase > > | nonexistingPathArray, | |||
| zmm::Ref< AutoscanDirectory > | adir, | |||
| zmm::String | normalizedAutoscanPath | |||
| ) | [private] |
| void Object::release | ( | ) | [inherited] |
Definition at line 66 of file object.cc.
References zmm::Object::_ref_count, atomic_dec(), and zmm::Object::mutex.
Referenced by zmm::ArrayBase::clear(), zmm::String::operator=(), DSOHash< zmm::Array< CacheObject > >::releaseData(), DSBHash< VT >::releaseData(), DSOHash< zmm::Array< CacheObject > >::remove(), zmm::ArrayBase::remove(), zmm::ArrayBase::removeUnordered(), zmm::ArrayBase::set(), zmm::ArrayBase::~ArrayBase(), DSOHash< zmm::Array< CacheObject > >::~DSOHash(), zmm::ObjectQueue< AutoscanDirectory >::~ObjectQueue(), zmm::ObjectStack< Element >::~ObjectStack(), and zmm::String::~String().
| void AutoscanInotify::removeDescendants | ( | int | wd | ) | [private] |
| bool AutoscanInotify::removeFromWdObj | ( | zmm::Ref< Wd > | wdObj, | |
| zmm::Ref< WatchMove > | toRemove | |||
| ) | [private] |
| bool AutoscanInotify::removeFromWdObj | ( | zmm::Ref< Wd > | wdObj, | |
| zmm::Ref< WatchAutoscan > | toRemove | |||
| ) | [private] |
| bool AutoscanInotify::removeFromWdObj | ( | zmm::Ref< Wd > | wdObj, | |
| zmm::Ref< Watch > | toRemove | |||
| ) | [private] |
| void AutoscanInotify::removeNonexistingMonitor | ( | int | wd, | |
| zmm::Ref< Wd > | wdObj, | |||
| zmm::Ref< zmm::Array< zmm::StringBase > > | pathAr | |||
| ) | [private] |
| void AutoscanInotify::removeWatchMoves | ( | int | wd | ) | [private] |
| void Object::retain | ( | ) | [inherited] |
Definition at line 58 of file object.cc.
References zmm::Object::_ref_count, atomic_inc(), and zmm::Object::mutex.
Referenced by zmm::ArrayBase::append(), zmm::ObjectQueue< AutoscanDirectory >::enqueue(), zmm::ArrayBase::insert(), zmm::String::operator=(), zmm::ObjectStack< Element >::push(), DSOHash< zmm::Array< CacheObject > >::put(), DSBHash< VT >::put(), zmm::ArrayBase::set(), and zmm::String::String().
| void AutoscanInotify::shutdown | ( | ) |
shutdown the inotify thread
warning: currently doesn't remove all the remaining inotify watches!
| static void* AutoscanInotify::staticThreadProc | ( | void * | arg | ) | [static, private] |
| void AutoscanInotify::threadProc | ( | ) | [private] |
| void AutoscanInotify::unmonitor | ( | zmm::Ref< AutoscanDirectory > | dir | ) |
Stop monitoring a directory.
| void AutoscanInotify::unmonitorDirectory | ( | zmm::String | path, | |
| zmm::Ref< AutoscanDirectory > | adir | |||
| ) | [private] |
| int AutoscanInotify::watchPathForMoves | ( | zmm::String | path, | |
| int | wd | |||
| ) | [private] |
mt_atomic_t zmm::Object::_ref_count [protected, inherited] |
Definition at line 54 of file object.h.
Referenced by zmm::Object::getRefCount(), zmm::Object::Object(), zmm::Object::release(), and zmm::Object::retain().
zmm::Ref<Cond> AutoscanInotify::cond [private] |
Definition at line 75 of file autoscan_inotify.h.
int AutoscanInotify::events [private] |
Definition at line 82 of file autoscan_inotify.h.
zmm::Ref<Inotify> AutoscanInotify::inotify [private] |
Definition at line 73 of file autoscan_inotify.h.
Definition at line 78 of file autoscan_inotify.h.
zmm::Ref<Mutex> AutoscanInotify::mutex [private] |
Reimplemented from zmm::Object.
Definition at line 76 of file autoscan_inotify.h.
bool AutoscanInotify::shutdownFlag [private] |
is set to true by shutdown() if the inotify thread should terminate
Definition at line 199 of file autoscan_inotify.h.
pthread_t AutoscanInotify::thread [private] |
Definition at line 71 of file autoscan_inotify.h.
Definition at line 79 of file autoscan_inotify.h.
zmm::Ref<DBOHash<int, Wd> > AutoscanInotify::watches [private] |
Definition at line 169 of file autoscan_inotify.h.
1.6.1