// Spectre 2 // // Douglas Thrift // // $Id$ #include "Unmounter.hpp" Unmounter::Unmounter(const api::Path& config) : Daemon(), config(config) {} void Unmounter::load() { loaded = true; } void Unmounter::run() { ext::ThreadSet<> workers; _synchronized (Spectre2::sharesLock) _foreach (const ext::RedBlackSet, share, Spectre2::shares) if (share->mounted() && !share->mountable()) { api::Cout << "STUB: unmount " << share << ios::NewLine; } workers.Join(); ::sleep(5); }