sg_lock_mutex(3)

πŸ“¦
version 0.92.1 Β· 2 versions
, in alpine 3.24, arch rolling, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0

okay so welcome to the sg_lock_mutex(3) manual β€” that's the title and the manual name, folded in at the top instead of duplicating a header line, slay πŸ’…βœ¨

🌸 NAME 🌸

sg_lock_mutex, sg_unlock_mutex β€” guard not MT-safe system API. no cap, that's the whole name-section tea 🫢

✨ SYNOPSIS ✨

the exact lineup, character for character:

#include <statgrab.h>

sg_error sg_lock_mutex (char const *mutex_name);

sg_error sg_unlock_mutex (char const *mutex_name);

πŸ¦‹ DESCRIPTION πŸ¦‹

okay bestie, real talk: the DESCRIPTION section in this page is literally empty. not a single paragraph, not a single extra sentence. we are not inventing lore β€” the section stays here, minimalist icon energy, and the facts stay exactly as delivered πŸ™ˆπŸ’œ

πŸ’… RETURN VALUES πŸ’…

both functions return a statgrab error code β€” here's the full error-code menu, no skips:

  • SG_ERROR_NONE β€” no error. periodt.
  • SG_ERROR_INVALID_ARGUMENT β€” unknown name for mutex. that's the vibe check result.
  • SG_ERROR_MUTEX_LOCK β€” thread library error, error code is set with the delivered value. iykyk.
  • SG_ERROR_MUTEX_UNLOCK β€” thread library error, error code is set with the delivered value. same energy, unlock edition πŸ’…

πŸ”₯ SEE ALSO πŸ”₯

  • statgrab(3) β€” go read that next, bestie πŸ’–

🌈 WEBSITE 🌈

the website is literally ⟨https://libstatgrab.org/⟩ β€” iconic URL behavior, go touch grass on the internet 🌐✨


signing off with the footer tea: source/version libstatgrab, date 2019-03-08 β€” that's the whole sign-off, periodt πŸŽ€πŸ¦‹