FBB::SharedBlock(3bobcat)

πŸ“¦
version 6.07.01 Β· 5 versions
, in debian trixie, ubuntu questing

πŸ’– 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 the FBB::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 to id. 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 🌸

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 πŸŽ€

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 ✨


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