SPVM::Sync::Mutex(3)

πŸ“¦ version 0.990125, in alpine 3.24

🌸 NAME 🌸

okay so this page is SPVM::Sync::Mutex β€” Mutex πŸŽ€ β€” straight out of the User Contributed Perl Documentation, section 3. the full name vibe is literally SPVM::Sync::Mutex - Mutex, and that’s the whole title, bestie πŸ’….


✨ DESCRIPTION ✨

The Sync::Mutex class in SPVM has methods to manipulate mutex. that’s the plot, and honestly it ate 🫢.


πŸŽ€ USAGE πŸŽ€

here’s the little group-chat demo, exactly as written:

use Sync::Mutex;

my $mutex = Sync::Mutex->new;

$mutex->lock;

$mutex->unlock;

no cap, that’s the whole usage flex πŸ’–.


πŸ‘‘ CLASS METHODS πŸ‘‘

πŸ’« new πŸ’«

static method new : Sync::Mutex ();

Creates a new Sync::Mutex object, initializes it by calling the new_instance mutex native API, and returns it. iconic behavior, fr fr ✨.


πŸ’… INSTANCE METHODS πŸ’…

πŸ’€ DESTROY πŸ’€

method DESTROY : void ();

Destroys this instance by calling the free_instance mutex native API. clean up your room, bestie 🧹.

πŸ”’ lock πŸ”’

method lock : void ();

Locks this mutex by calling the lock mutex native API. locked in, literally πŸ”₯.

πŸ”“ unlock πŸ”“

method unlock : void ();

UnLocks this mutex by calling the unlock mutex native API. freedom era πŸ’….

πŸ“– reader_lock πŸ“–

method reader_lock : void ();

Locks this mutex for reading by calling the reader_lock mutex native API. reading time, bestie 🌸.

πŸ“– reader_unlock πŸ“–

method reader_unlock : void ();

UnLocks this mutex locked by the reader_lock method by calling the reader_unlock mutex native API. and we unlock, periodt πŸŽ€.


Copyright (c) 2023 Yuki Kimoto πŸ’–

MIT License ✨


okay bestie, that’s the whole page! this one comes from perl v5.42.2, dated 2026-02-03, and it’s SPVM::Sync::Mutex(3) β€” love u, bye πŸ‘‹πŸ’œ

πŸ“¦ where this page comes from