libcryfs/test/testutils/FuseThread.h

28 lines
453 B
C
Raw Normal View History

#pragma once
2015-10-15 13:04:57 +02:00
#ifndef MESSMER_FSPP_TEST_TESTUTILS_FUSETHREAD_H_
#define MESSMER_FSPP_TEST_TESTUTILS_FUSETHREAD_H_
#include <thread>
2015-10-17 20:35:17 +02:00
#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;
2015-10-17 20:35:17 +02:00
DISALLOW_COPY_AND_ASSIGN(FuseThread);
};
#endif