Function FSWatcher.addWatch
Add a watch point.
mecca .lib .typedid .RawTypedIdentifier!("WatchDescriptor",int,-1,-1,mecca.log.FMT(""),false) addWatch
(
const(char)[] path,
uint mask,
void delegate(ref const(Inotifier . Event)) callback
) @safe;
Parameters
Name | Description |
---|---|
path | The path to watch |
mask | The events we should watch for. See details in Inotifier . |
callback | The delegate to be called when the events happen. Will be passed a Inotifier struct. The code
will run under a critical section, so it must not yield. |