nixd
Loading...
Searching...
No Matches
nixd
lib
Support
AutoRemoveShm.cpp
Go to the documentation of this file.
1
#include "
nixd/Support/AutoRemoveShm.h
"
2
3
namespace
nixd::util
{
4
5
AutoRemoveShm::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.h
nixd::util::AutoRemoveShm::AutoRemoveShm
AutoRemoveShm(std::string ShmName, boost::interprocess::offset_t Size)
Definition
AutoRemoveShm.cpp:5
nixd::util
Definition
AutoCloseFD.h:5
Generated by
1.12.0