sc::ThreadLock(3)

πŸ“¦
version 2.3.1 Β· 5 versions
, in ubuntu jammy

πŸ’… NAME

sc::ThreadLock β€” the ThreadLock abstract class provides mutex locks to be used in conjunction with ThreadGrp's. bestie, it's literally the lock guy 🫢


✨ SYNOPSIS ✨

#include <thread.h>

Inherits sc::RefCount. yes, it's giving nepo baby of the class hierarchy πŸ’…

🌸 Public Member Functions 🌸

  • virtual void lock () = 0 β€” obtain the lock πŸ”’ like grab it, it's yours now
  • virtual void unlock () = 0 β€” release the lock πŸ”“ let it gooo, set it free

Both of these are pure virtual (= 0), so like… the abstract class is NOT doing the work for you. she's just the blueprint, periodt πŸ‘‘

πŸ¦‹ Additional Inherited Members πŸ¦‹

ngl there's more coming down the pipeline from sc::RefCount β€” it's inherited, so it's all vibes from the parent class πŸ’–


πŸŽ€ DESCRIPTION πŸŽ€

okay so. The sc::ThreadLock abstract class provides mutex locks to be used in conjunction with ThreadGrp's. that's the whole assignment. that's her main character energy ✨

IMPORTANT-IMPORTANT, do not skip this πŸ™ˆ β€” ThreadLock objects should be locked and unlocked with ThreadLockHolder objects to provide exception safety. fr fr, don't be out here raw-dogging lock() and unlock() calls, because if an exception gets thrown between them you're gonna have a bad time 😭 the ThreadLockHolder is your emotional support safety net 🧚


πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for MPQC from the source code. yeah the robots wrote this one, not me πŸ’€


sign-off bestie πŸ’– this little page is from Version 2.3.1, dated Sun Oct 4 2020 β€” vintage!! lowkey iconic. now go forth and lock responsibly πŸŽ€βœ¨πŸ¦‹

πŸ“¦ where this page comes from