Documentation ¶
Overview ¶
Package multex provides multiple mutual exclusion lock. The name is constructed by combining a common name for mutual exclusion locks, Mutex, and word multiple, which is a property of this specific implementation. Multex locking and unlocking for a single key is a few times slower then locking with sync.Mutex, but provides the ability to lock the same block of code with specific keys, allowing concurrent execution of the same code only for different keys.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Multex ¶
type Multex[K comparable] struct { // contains filtered or unexported fields }
Multex is a mutual exclusion lock with support for multiple keys.
Click to show internal directories.
Click to hide internal directories.