28 lines
453 B
C++
28 lines
453 B
C++
#pragma once
|
|
#ifndef MESSMER_FSPP_TEST_TESTUTILS_FUSETHREAD_H_
|
|
#define MESSMER_FSPP_TEST_TESTUTILS_FUSETHREAD_H_
|
|
|
|
#include <thread>
|
|
#include <messmer/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;
|
|
std::thread _child;
|
|
|
|
DISALLOW_COPY_AND_ASSIGN(FuseThread);
|
|
};
|
|
|
|
#endif
|