ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/repos/Spectre2/Unmounter.cpp
Revision: 428
Committed: 2005-03-24T17:38:00-08:00 (20 years, 2 months ago) by douglas
File size: 492 byte(s)
Log Message:
Finally, I can commit!

File Contents

# User Rev Content
1 douglas 402 // Spectre 2
2     //
3     // Douglas Thrift
4     //
5     // $Id$
6    
7     #include "Unmounter.hpp"
8    
9 douglas 418 Unmounter::Unmounter(const api::Path& config) : Daemon(), config(config) {}
10 douglas 402
11     void Unmounter::load()
12     {
13     loaded = true;
14     }
15    
16     void Unmounter::run()
17     {
18 douglas 428 ext::ThreadSet<> workers;
19 douglas 402
20 douglas 428 _synchronized (Spectre2::sharesLock) _foreach (const ext::RedBlackSet<Share>, share, Spectre2::shares) if (share->mounted() && !share->mountable())
21     {
22     api::Cout << "STUB: unmount " << share << ios::NewLine;
23     }
24    
25     workers.Join();
26    
27 douglas 407 ::sleep(5);
28 douglas 402 }

Properties

Name Value
svn:eol-style native
svn:keywords Id