31 #include "boost/filesystem.hpp"
32 #include <boost/filesystem/operations.hpp>
33 #include <boost/utility.hpp>
35 namespace fs = boost::filesystem;
36 using boost::filesystem::path;
47 boost::mutex::scoped_lock lock(mMutex);
62 boost::mutex::scoped_lock lock(mMutex);
68 void* Listener::Entry()
76 if(!mMounted && mAddFiles)
89 if(mMounted && mRemoveFiles)
101 endwait = clock () + 0.001 * CLOCKS_PER_SEC ;
102 while (clock() < endwait ) {}
111 void Listener::OnExit()
119 mMountingSignal.connect(callback);
123 void Listener::SendSignal(
bool mount)
125 mMountingSignal(mount);