logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

MCE::Mutex::Channel2 - Provides two mutexes using a single channel

Author

       Mario E. Roy, <marioeroy AT gmail DOT com>

perl v5.40.0                                       2025-01-11                          MCE::Mutex::Channel2(3pm)

Description

       A socket implementation based on "MCE::Mutex". The secondary lock is accessed by calling methods with the
       2 suffix.

       The API is described in MCE::Mutex.

   construction
       new
           my $mutex = MCE::Mutex->new( impl => 'Channel2' );

   primarylock
       lock
       lock_exclusive
       lock_shared
       guard_lock
       unlock
       synchronize
       enter
       timedwait

   secondarylock
       lock2
       lock_exclusive2
       lock_shared2
       guard_lock2
       unlock2
       synchronize2
       enter2
       timedwait2

Name

       MCE::Mutex::Channel2 - Provides two mutexes using a single channel

Version

       This document describes MCE::Mutex::Channel2 version 1.901

See Also