ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/repos/Spectre2/Unmounter.cpp
(Generate patch)

Comparing Spectre2/Unmounter.cpp (file contents):
Revision 427 by douglas, 2005-03-02T22:36:24-08:00 vs.
Revision 428 by douglas, 2005-03-24T17:38:00-08:00

# Line 10 | Line 10 | Unmounter::Unmounter(const api::Path& co
10  
11   void Unmounter::load()
12   {
13        if (Spectre2::debug) api::Cerr << "Unmounter::load()" << ios::NewLine;
14
13          loaded = true;
14   }
15  
16   void Unmounter::run()
17   {
18 <        if (Spectre2::debug) api::Cerr << "Unmounter::run()" << ios::NewLine;
18 >        ext::ThreadSet<> workers;
19 >
20 >        _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          ::sleep(5);
28   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines