OST_OBJSYNC(3)

πŸ“¦ version 1.8.1, in ubuntu jammy

πŸ’– ost::objSync< T > β€” from the Library Functions Manual (section 3, bestie) πŸ’–

okay so picture this: you've got a whole squad of objects that all descend from one common base type, and they ALL wanna share ONE static mutex so every single instance of the class is chilling under a global lock. that's literally this template. that's the whole vibe. periodt. πŸ’…


✨ NAME ✨

ost::objSync< T > β€” generic template to create objects of a common base type which share a static mutex so that all instances of the class have a global lock. 🫢


🌸 SYNOPSIS 🌸

#include <objsync.h>

πŸŽ€ Protected Member Functions πŸŽ€

void objLock (void)
void objUnlock (void)

πŸ’œ Detailed Description πŸ’œ

template<class T>
class ost::objSync< T >

no fr, this is the generic template to create objects of a common base type which share a static mutex so that all instances of the class have a global lock. it's giving one lock to rule them all. πŸ‘‘

Author β€” David Sugar dyfet@gnutelephony.org

lowkey iconic: this is a global mutex locked class. πŸ”’βœ¨

πŸ¦‹ Member Function Documentation πŸ¦‹

template<class T > void ost::objSync< T >::objLock (void) [inline], [protected]

template<class T > void ost::objSync< T >::objUnlock (void) [inline], [protected]

both of these are [inline] and [protected], bestie β€” that's the whole spec, no cap. πŸ™ˆ


⭐ Author ⭐

Generated automatically by Doxygen for GNU CommonC++ from the source code.


and that's the page, babe πŸŽ€ β€” written up by GNU CommonC++ and dated Sun Dec 27 2020. slay, stay locked, stay safe. πŸ’–πŸŒˆπŸ¦‹

πŸ“¦ where this page comes from