18 #ifndef _LOG4CXX_HELPERS_FILEWATCHDOG_H 19 #define _LOG4CXX_HELPERS_FILEWATCHDOG_H 27 #include <condition_variable> 45 static long DEFAULT_DELAY ;
63 virtual void doOnChange() = 0;
64 void checkAndConfigure();
79 bool is_interrupted();
82 std::condition_variable interrupt;
83 std::mutex interrupt_mutex;
93 #endif // _LOG4CXX_HELPERS_FILEWATCHDOG_H Check every now and then that a certain file has not changed.
Definition: filewatchdog.h:38
volatile int interrupted
Definition: filewatchdog.h:59
File file
The name of the file to observe for changes.
Definition: filewatchdog.h:51
log4cxx_time_t lastModif
Definition: filewatchdog.h:57
long delay
The delay to observe between every check.
Definition: filewatchdog.h:56
An abstract representation of file and directory path names.
Definition: file.h:45
Definition: appender.h:32
bool warnedAlready
Definition: filewatchdog.h:58
void setDelay(long delay1)
Set the delay to observe between each check of the file changes.
Definition: filewatchdog.h:70