You can see an example in libasync.tests
thanks! I have got few questions g_cbCheck = new shared bool[19]; what does it do?AsyncDirectoryWatcher g_watcher = new AsyncDirectoryWatcher(getThreadEventLoop()); Am I right understand that it's run new eventloop inside AsyncDirectoryWatcher function?