.\" -*- mode: troff; coding: utf-8 -*- .\" Automatically generated by Pod::Man 5.01 (Pod::Simple 3.43) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>. .ie n \{\ . ds C` "" . ds C' "" 'br\} .el\{\ . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "MCE::Mutex::Channel2 3pm" .TH MCE::Mutex::Channel2 3pm 2024-05-25 "perl v5.38.2" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH NAME MCE::Mutex::Channel2 \- Provides two mutexes using a single channel .SH VERSION .IX Header "VERSION" This document describes MCE::Mutex::Channel2 version 1.890 .SH DESCRIPTION .IX Header "DESCRIPTION" A socket implementation based on \f(CW\*(C`MCE::Mutex\*(C'\fR. The secondary lock is accessed by calling methods with the \f(CW2\fR suffix. .PP The API is described in MCE::Mutex. .SS construction .IX Subsection "construction" .IP new 3 .IX Item "new" .Vb 1 \& my $mutex = MCE::Mutex\->new( impl => \*(AqChannel2\*(Aq ); .Ve .SS "primary lock" .IX Subsection "primary lock" .IP lock 3 .IX Item "lock" .PD 0 .IP lock_exclusive 3 .IX Item "lock_exclusive" .IP lock_shared 3 .IX Item "lock_shared" .IP guard_lock 3 .IX Item "guard_lock" .IP unlock 3 .IX Item "unlock" .IP synchronize 3 .IX Item "synchronize" .IP enter 3 .IX Item "enter" .IP timedwait 3 .IX Item "timedwait" .PD .SS "secondary lock" .IX Subsection "secondary lock" .IP lock2 3 .IX Item "lock2" .PD 0 .IP lock_exclusive2 3 .IX Item "lock_exclusive2" .IP lock_shared2 3 .IX Item "lock_shared2" .IP guard_lock2 3 .IX Item "guard_lock2" .IP unlock2 3 .IX Item "unlock2" .IP synchronize2 3 .IX Item "synchronize2" .IP enter2 3 .IX Item "enter2" .IP timedwait2 3 .IX Item "timedwait2" .PD .SH AUTHOR .IX Header "AUTHOR" Mario E. Roy,