syncx

package
v1.8.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 13, 2021 License: BSD-2-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsLocked added in v1.8.0

func IsLocked(m *sync.Mutex) bool

IsLocked return weather lock is locked

func TryLock added in v1.2.1

func TryLock(m *sync.Mutex) bool

TryLock try to lock a mutex, if cannot acquire, return false immediately. If acquired, return true.

func TryRLock added in v1.8.4

func TryRLock(m *sync.RWMutex) bool

TryRLock try to add a read lock. If cannot lock due to a writer hold the lock, return false immediately.

func TryWLock added in v1.8.4

func TryWLock(m *sync.RWMutex) bool

TryWLock try to add a write lock. If cannot lock, return false immediately.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL