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