nixd
Loading...
Searching...
No Matches
AutoRemoveShm.cpp
Go to the documentation of this file.
2
3namespace nixd::util {
4
5AutoRemoveShm::AutoRemoveShm(std::string ShmName,
6 boost::interprocess::offset_t Size)
7 : ShmName(std::move(ShmName)) {
8 Shm = boost::interprocess::shared_memory_object(
9 boost::interprocess::open_or_create, this->ShmName.c_str(),
10 boost::interprocess::read_write);
11 Shm.truncate(Size);
12}
13
14} // namespace nixd::util
AutoRemoveShm(std::string ShmName, boost::interprocess::offset_t Size)
bool fromJSON(const llvm::json::Value &Params, Configuration::Diagnostic &R, llvm::json::Path P)