NAME

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

VERSION

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

DESCRIPTION

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

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

primary lock

  • $mutex->lock

  • $mutex->unlock

  • $mutex->synchronize

  • $mutex->timedwait

secondary lock

  • $mutex->lock2

  • $mutex->unlock2

  • $mutex->synchronize2

  • $mutex->timedwait2

AUTHOR

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