SPVM::Sync::Mutex − Mutex
The Sync::Mutex class in SPVM has methods to manipulate mutex.
use Sync::Mutex;
my $mutex = Sync::Mutex−>new;
$mutex−>lock;
$mutex−>unlock;
"static method new : Sync::Mutex ();"
Creates a new Sync::Mutex object, initializes it by calling the new_instance mutex native API, and returns it.
"method DESTROY : void ();"
Destroys this instance by calling the free_instance mutex native API
"method lock : void ();"
Locks this mutex by calling the lock mutex native API.
"method unlock : void ();"
UnLocks this mutex by calling the unlock mutex native API.
"method reader_lock : void ();"
Locks this mutex for reading by calling the reader_lock mutex native API.
"method reader_unlock : void ();"
UnLocks this mutex locked by "reader_lock" method by calling the reader_unlock mutex native API.
Copyright (c) 2023 Yuki Kimoto
MIT License