sc::ThreadLockHolder(3)

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

✨ sc::ThreadLockHolder: the bestie manual page πŸ’…

okay so this is the sc::ThreadLockHolder(3) page, and it’s literally about holding a lock. The vibe? Acquire on creation, release on destruction. So clean. ✨


πŸŽ€ NAME πŸŽ€

sc::ThreadLockHolder β€” acquire a lock on creation and release it on destruction. That’s the whole name, bestie. Also hi, yes, you’re reading sc::ThreadLockHolder(3) πŸ’–.

🌸 SYNOPSIS 🌸

#include <thread.h>

πŸ’– Public Member Functions πŸ’–

  • ThreadLockHolder (const Ref< ThreadLock > &l) β€” Acquires the lock. slay, that’s the constructor doing its thing πŸ”₯
  • void unlock () β€” Release the lock before the DTOR is called, if it is still held. important little escape hatch, ngl πŸ’…
  • void lock () β€” Acquire the lock once more. yes bestie, again ✨
  • ~ThreadLockHolder () β€” Releases the lock if it is still held. the destructor is giving cleanup main character energy 🧚

πŸ’œ DETAILED DESCRIPTION πŸ’œ

okay so real talk: acquire a lock on creation and release it on destruction.

This should be used to lock and unlock ThreadLock objects to provide exception safety. periodt. That’s the whole mood: exception safety via lock holder, no cap 🫢.

🌈 AUTHOR 🌈

Generated automatically by Doxygen for MPQC from the source code.

That’s the author section, bestie. Automatic Doxygen magic for MPQC ✨.


okay bye bestie πŸ’‹ β€” this cutie is Version 2.3.1, dated Sun Oct 4 2020, from MPQC. slay and stay locked (or unlocked at exactly the right time) πŸŒˆπŸ‘‘

πŸ“¦ where this page comes from