EventDriverWatchers

Undocumented in source.

Members

Functions

addRef
void addRef(WatcherID descriptor)

Increments the reference count of the given resource.

isValid
bool isValid(WatcherID handle)

Determines whether the given watcher handle is valid.

rawUserData
void* rawUserData(WatcherID descriptor, size_t size, DataInitializer initialize, DataInitializer destroy)

Low-level user data access. Use userData instead.

releaseRef
bool releaseRef(WatcherID descriptor)

Decrements the reference count of the given resource.

watchDirectory
WatcherID watchDirectory(string path, bool recursive, FileChangesCallback callback)

Watches a directory or a directory sub tree for changes.

Properties

userData
WatcherID userData [@property setter]

Retrieves a reference to a user-defined value associated with a descriptor.

Meta