18 #ifndef _LOG4CXX_HELPERS_FILEWATCHDOG_H 19 #define _LOG4CXX_HELPERS_FILEWATCHDOG_H 21 #include <log4cxx/logstring.h> 23 #include <log4cxx/helpers/pool.h> 24 #include <log4cxx/helpers/thread.h> 25 #include <log4cxx/file.h> 43 static long DEFAULT_DELAY ;
55 log4cxx_time_t lastModif;
57 volatile unsigned int interrupted;
61 virtual void doOnChange() = 0;
62 void checkAndConfigure();
76 static void* LOG4CXX_THREAD_FUNC run(apr_thread_t* thread,
void* data);
88 #endif // _LOG4CXX_HELPERS_FILEWATCHDOG_H This class implements an approximation of java.util.Thread.
Definition: thread.h:59
Check every now and then that a certain file has not changed.
Definition: filewatchdog.h:36
File file
The name of the file to observe for changes.
Definition: filewatchdog.h:49
long delay
The delay to observe between every check.
Definition: filewatchdog.h:54
An abstract representation of file and directory path names.
Definition: file.h:45
Definition: appender.h:33
void setDelay(long delay1)
Set the delay to observe between each check of the file changes.
Definition: filewatchdog.h:68