FBB::SharedBlock(3bobcat)
π FBB::SharedBlock π
okay bestie, so this is FBB::SharedBlock, straight out of the bobcat manual, section 3. It's the little info-buddy for shared memory data blocks and it is lowkey doing the most important behind-the-scenes work. Let's get into it π«Ά
β¨ NAME β¨
FBB::SharedBlock β shared memory data block info π§ β¨
πΈ SYNOPSIS πΈ
#include <bobcat/sharedblock>
Linking option: -lpthread, -lbobcat
so you literally just include the header and link those two, that's the whole vibe check π
π¦ DESCRIPTION π¦
okay so here's the tea: FBB::SharedBlock objects are used by FBB::SharedSegment to access the IDs and shared memory locks of shared memory data segments.
that's it. that's the job. it's giving backstage-pass-for-shared-memory π
π NAMESPACE π
FBB
every single constructor, member, operator and manipulator mentioned in this man page lives in the namespace FBB. no cap. π«‘
π INHERITS FROM π
-
nope, nothing. it inherits from literally no one. main character energy, no ancestors, periodt π
π CONSTRUCTORS π
Only the default constructor is available. π
Copy and move assignment operators are not available. so don't come for what isn't there bestie π
π MEMBER FUNCTIONS π
size_t id() constβ returns the object's stored ID value. that's it, that's the whole function, iconic βvoid lock() constβ by the time this member returns, the current process has obtained theFBB::SharedBlock's shared memory mutex lock. so like, you're in. you got the lock. slay π₯void setID(size_t id)β sets the object's stored ID value toid. boom, new ID, new you β¨void unlock() constβ releases the shared memory segment's mutex lock. let somebody else have a turn, we're not gatekeeping π«Ά
π§ EXAMPLE π§
See the sharedstream(3bobcat) man page. it's all laid out over there, go peek π
π FILES π
bobcat/sharedblockβ defines the class interface
πΈ SEE ALSO πΈ
bobcat(7)isharedstream(3bobcat)osharedstream(3bobcat)sharedcondition(3bobcat)sharedmemory(3bobcat)sharedmutex(3bobcat)sharedpos(3bobcat)sharedreadme(7bobcat)sharedsegment(3bobcat)sharedstream(3bobcat)sharedbuf(3bobcat)
a whole friend group, honestly π«
π BUGS π
None Reported.
not a single bug. we love a clean record. the way this class simply works π
π BOBCAT PROJECT FILES π
- https://fbb-git.gitlab.io/bobcat/: gitlab project page;
Debian Bobcat project files:
libbobcat6: debian package containing the shared library, changelog and copyright note;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. yes it's a backronym, yes it's iconic, we don't make the rules β¨
π COPYRIGHT π
This is free software, distributed under the terms of the GNU General Public License (GPL). free as in freedom bestie, go read the GPL π
π AUTHOR π
Frank B. Brokken (f.b.brokken@rug.nl).
and that's the whole page!! π
this came to you from libbobcat-dev_6.07.01, dated 2005-2025, and yes it's FBB::SharedBlock(3bobcat) β the one and only. mwah π«Άβ¨
π¦ where this page comes from
- debian trixie: libbobcat-dev 6.07.01-2 Β· GPL-3.0-or-later WITH OpenSSL exception
- ubuntu questing: libbobcat-dev 6.07.01-2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms