File: FuseThread.h

package info (click to toggle)
cryfs 1.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 28,412 kB
  • sloc: cpp: 150,187; asm: 10,493; python: 1,455; javascript: 65; sh: 50; makefile: 17; xml: 7
file content (29 lines) | stat: -rw-r--r-- 584 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#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>
#include <boost/filesystem/path.hpp>

namespace fspp {
namespace fuse {
  class Fuse;
}
}

class FuseThread {
public:
  FuseThread(fspp::fuse::Fuse *fuse);
  void start(const boost::filesystem::path &mountDir, const std::vector<std::string> &fuseOptions);
  void stop();

private:
  fspp::fuse::Fuse *_fuse;
  boost::thread _child;

  DISALLOW_COPY_AND_ASSIGN(FuseThread);
};

#endif