sc::ThreadLock(3)
π 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 nowvirtual 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
- ubuntu jammy: libsc-doc 2.3.1-21
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms