Пример #1
0
static VALUE t_start(VALUE self) {
  VALUE rb_registered_directories = rb_iv_get(self, "@registered_directories");
  Check_Type(rb_registered_directories, T_ARRAY);

  watch_directory(self);
  return self;
}
Пример #2
0
static DWORD WINAPI tfunc(LPVOID lpParam)
{
	folder_watcher* s = (folder_watcher*)lpParam;
	watch_directory(s);
	return 0;
}
Пример #3
0
static VALUE t_restart(VALUE self) {
  t_stop(self);
  watch_directory(self);
  return self;
}