Esempio n. 1
0
bool start(FileWatcher *watcher) {
#ifndef DEBUG
    if (watcher->sdkVersion < 24)
#endif
        addWatches(watcher);
    processInotifyEvent(watcher);
    return destroyWatches(watcher);
}
Esempio n. 2
0
void System::setWorld(World *world) {
	_world = world;
	diana_createSystem(world->getDiana(), _name.c_str(), _system_starting, _system_process, _system_ending, _system_subscribed, _system_unsubscribed, this, systemFlags(), &_id);
	addWatches();
}