Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 1.16 KB

README.md

File metadata and controls

26 lines (18 loc) · 1.16 KB

Advanched sync

Go Report Card GoDoc

Advanched sync package for Golang.

NamedMutex

It's a multiple mutexes with lock and unlock by name implemented as interface{}. Uses sync.RWMutex+map.

NamedRWMutex

It's a multiple read/write mutexes with lock, unlock, rw lock and rw unlock by name implemented as interface{}. Uses sync.RWMutex+map.

NamedMutexSM

It's a multiple mutexes with lock and unlock by name implemented as interface{}. Uses sync.Map.

NamedRWMutexSM

It's a multiple read/write mutexes with lock, unlock, rw lock and rw unlock by name implemented as interface{}. Uses sync.Map.

Semaphore

It's semaphore primitive based by sync.Cond.

NamedSemaphore

It's a multiple semaphores with acquiries and releases by name implemented as interface{}. Uses sync.RWMutex+map.

NamedSemaphoreSM

It's a multiple mutexes with acquiries and releases by name implemented as interface{}. Uses sync.Map.