---
name: "MCE::Mutex::Channel2"
section: "3pm"
platform: "linux"
package: "libmce-perl"
version: "1.901-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/MCE::Mutex::Channel2"
---

# MCE::Mutex::Channel2(3pm)

Provides two mutexes using a single channel

## NAME

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

## VERSION

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

## 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' );
  ```

### primary lock

- lock

  - lock\_exclusive

  - lock\_shared

  - guard\_lock

  - unlock

  - synchronize

  - enter

  - timedwait

  ### secondary lock

- lock2

  - lock\_exclusive2

  - lock\_shared2

  - guard\_lock2

  - unlock2

  - synchronize2

  - enter2

  - timedwait2

  ## AUTHOR

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