Mir
include
core
mir
anonymous_shm_file.h
Go to the documentation of this file.
1
/*
2
* Copyright © 2013 Canonical Ltd.
3
*
4
* This program is free software: you can redistribute it and/or modify it
5
* under the terms of the GNU Lesser General Public License version 2 or 3,
6
* as published by the Free Software Foundation.
7
*
8
* This program is distributed in the hope that it will be useful,
9
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
* GNU Lesser General Public License for more details.
12
*
13
* You should have received a copy of the GNU Lesser General Public License
14
* along with this program. If not, see <http://www.gnu.org/licenses/>.
15
*
16
* Authored by:
17
* Alexandros Frantzis <alexandros.frantzis@canonical.com>
18
*/
19
20
#ifndef MIR_CORE_ANONYMOUS_SHM_FILE_H_
21
#define MIR_CORE_ANONYMOUS_SHM_FILE_H_
22
23
#include "
shm_file.h
"
24
#include "
mir/fd.h
"
25
26
namespace
mir
27
{
28
29
namespace
detail
30
{
31
}
32
33
class
AnonymousShmFile
:
public
ShmFile
34
{
35
public
:
36
AnonymousShmFile
(
size_t
size);
37
~
AnonymousShmFile
() noexcept;
38
39
void
* base_ptr()
const override
;
40
int
fd()
const override
;
41
42
private
:
43
Fd
const
fd_;
44
class
MapHandle;
45
std::unique_ptr<MapHandle>
const
mapping;
46
};
47
48
}
49
50
#endif
/* MIR_CORE_ANONYMOUS_SHM_FILE_H_ */
mir
AutoUnblockThread is a helper thread class that can gracefully shutdown at destruction time...
Definition:
sw_splash.h:26
mir::ShmFile
Definition:
shm_file.h:28
mir::Fd
Definition:
fd.h:33
shm_file.h
fd.h
mir::AnonymousShmFile
Definition:
anonymous_shm_file.h:33
Copyright © 2012-2017 Canonical Ltd.
Generated on Wed Oct 11 15:14:10 UTC 2017