libcryfs/test/fspp/testutils/FuseThread.h
2016-02-11 12:53:42 +01:00

29 lines
485 B
C++

#pragma once
#ifndef MESSMER_FSPP_TEST_TESTUTILS_FUSETHREAD_H_
#define MESSMER_FSPP_TEST_TESTUTILS_FUSETHREAD_H_
#include <boost/thread.hpp>
#include <boost/chrono.hpp>
#include <cpp-utils/macros.h>
namespace fspp {
namespace fuse {
class Fuse;
}
}
class FuseThread {
public:
FuseThread(fspp::fuse::Fuse *fuse);
void start(int argc, char *argv[]);
void stop();
private:
fspp::fuse::Fuse *_fuse;
boost::thread _child;
DISALLOW_COPY_AND_ASSIGN(FuseThread);
};
#endif