2014-11-18 00:14:33 +01:00
|
|
|
#pragma once
|
2015-10-15 13:04:57 +02:00
|
|
|
#ifndef MESSMER_FSPP_TEST_TESTUTILS_FUSETHREAD_H_
|
|
|
|
#define MESSMER_FSPP_TEST_TESTUTILS_FUSETHREAD_H_
|
2014-11-18 00:14:33 +01:00
|
|
|
|
2015-12-16 00:20:38 +01:00
|
|
|
#include <boost/thread.hpp>
|
|
|
|
#include <boost/chrono.hpp>
|
2016-02-11 12:53:42 +01:00
|
|
|
#include <cpp-utils/macros.h>
|
2014-11-18 00:14:33 +01:00
|
|
|
|
|
|
|
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;
|
2015-12-16 00:20:38 +01:00
|
|
|
boost::thread _child;
|
2015-10-17 20:35:17 +02:00
|
|
|
|
|
|
|
DISALLOW_COPY_AND_ASSIGN(FuseThread);
|
2014-11-18 00:14:33 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|