First results

Posted on June 4, 2011

Almost two weeks gone since my last post here.

It is a hot time in the university, there are setoffs now and exams ahead. However, I have merged two big commits into my kqueue/master branch.

The first one just adds kqueue backend stub into Glib source tree, it is not so interesting, as the second one . The core functionality for file monitoring with kqueue is introduced in this merge.

Currently the following events can be monitored:

  1. G_FILE_MONITOR_EVENT_DELETED;
  2. G_FILE_MONITOR_EVENT_ATTRIBUTE_CHANGED;
  3. G_FILE_MONITOR_EVENT_CHANGED;
  4. G_FILE_MONITOR_EVENT_MOVED.

Further plans for gio/kqueue extension:

  1. Implement (emulate) G_FILE_MONITOR_EVENT_CREATED and (if possible) G_FILE_MONITOR_EVENT_UNMOUNTED;
  2. Implement a missing files monitoring (i.e. wait while a file will be created and then start monitoring it);
  3. Resolve all 20+ TODOs (pending features and improvements, doubtful solutions in the code);
  4. Write tests and benchmarks.

Larger version , 56K

A gloomy screenshot above demonstrates what is working for now. Stay tuned!