sharedblock3bobcat
Shared memory data block info
Usage
#include <bobcat/sharedblock>
Linking option: -lpthread, -lbobcat
Overview
FBB::SharedBlock objects are used by FBB::SharedSegment to access the IDs and shared memory locks of shared memory data segments.
Namespace
FBB
All constructors, members, operators and manipulators, mentioned in this man-page, are defined in the namespace FBB.
Inherits from
-
Constructors
Only the default constructor is available. Copy and move assignment operators are not available.
Member functions
- o
-
size_t id() const:
The object’s stored ID value is returned.
- o
-
void lock() const:
When returning from this member, the current process has obtained theFBB::SharedBlock’s shared memory mutex lock.
- o
-
void setID(size_t id):
The object’s stored ID value is set to id.
- o
-
void unlock() const:
The shared memory segment’s mutex lock is released.
Examples
See the sharedstream(3bobcat) man page.
Files
bobcat/sharedblock - defines the class interface
Bobcat project files
- o
-
https://fbb-git.gitlab.io/bobcat/: gitlab project page;
Debian Bobcat project files:
- o
-
libbobcat6: debian package containing the shared library, changelog and copyright note;
- o
-
libbobcat-dev: debian package containing the static library, headers, manual pages, and developer info;
Bobcat
Bobcat is an acronym of `Brokken’s Own Base Classes And Templates’.
Releases
6 releases since Debian 8 (Jessie); the text changed 5 times.