1. 23 4月, 2016 1 次提交
  2. 09 3月, 2016 1 次提交
  3. 01 3月, 2016 1 次提交
  4. 14 12月, 2015 1 次提交
  5. 09 12月, 2015 1 次提交
  6. 22 11月, 2015 3 次提交
    • X
      removes the mutex around `changed` · 0b9812bd
      Xavier Noria 提交于
      This method needs to ensure that if a change happens, it is going to be registered.
      With this refactor suggested by @matthewd race conditions do not matter because if
      no file is watched, nothing is done. And as long as some invocation sets the flag
      to true, it will stay true.
      
      The refactor leaves a race condition in which two simultaneous threads that watch
      some of the files passed do the actual work in `any?`, whereas the mutex guaranteed
      that was done at most once. But this is considered to be a better tradeoff.
      0b9812bd
    • X
      reset the @updated flag before the callback invocation · 4596c1a3
      Xavier Noria 提交于
      4596c1a3
    • X
      make the @updated flag atomic in the evented monitor · 49a5b408
      Xavier Noria 提交于
      listen is calling us from its own thread, we need to synchronize reads and writes to this flag.
      49a5b408
  7. 12 11月, 2015 2 次提交
    • X
      base (refined) Pathname#ascendant_of? also on Pathname#ascend · 99c1043a
      Xavier Noria 提交于
      A small rewrite in a last attempt at writing obvious and portable code
      without manual string manipulation.
      
      Note that Pathname#== uses string comparison on Windows, so if client
      code passes "C:\foo" and "c:/foo/bar" the predicate won't see the
      former is an ascendant of the latter. Risky business.
      99c1043a
    • X
      let filter_out_descendants do less passes · 18b44ff1
      Xavier Noria 提交于
      Whatever the inner loop selects, we already know is a descendant and
      can be filtered out right away from dirs_sorted_by_nparts to skip
      useless iterations.
      18b44ff1
  8. 11 11月, 2015 9 次提交
  9. 10 11月, 2015 1 次提交
  10. 09 11月, 2015 6 次提交