YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
ShmemTypes.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT)
3 * SPDX-FileCopyrightText: 2006-2010 RobotCub Consortium
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7#ifndef YARP_SHMEM_SHMEMTYPES_H
8#define YARP_SHMEM_SHMEMTYPES_H
9
10#define SHMEM_DEFAULT_SIZE 4096
11
13{
14 bool resize;
15 bool close;
16 // Set by the reader once it has mapped this segment. When set, the
17 // writer can release the previous (smaller) segments.
19
20 int size;
22
23 int head;
24 int tail;
25 int avail;
27};
28
30{
32 int size;
33};
34
35#endif // YARP_SHMEM_SHMEMTYPES_H