syncext

package
v0.0.0-...-78fbe0a Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2019 License: Apache-2.0 Imports: 1 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SingleLockSemaphore

type SingleLockSemaphore struct {
	// contains filtered or unexported fields
}

func NewSingleLockSemaphore

func NewSingleLockSemaphore() *SingleLockSemaphore

this does NOT start unlocked

func (*SingleLockSemaphore) Read

func (m *SingleLockSemaphore) Read()

func (*SingleLockSemaphore) Release

func (m *SingleLockSemaphore) Release() bool

type TimeoutMutex

type TimeoutMutex struct {
	// contains filtered or unexported fields
}

func NewMutex

func NewMutex() *TimeoutMutex

func (*TimeoutMutex) Lock

func (m *TimeoutMutex) Lock()

func (*TimeoutMutex) TestIsLocked

func (m *TimeoutMutex) TestIsLocked() bool

no promises about the second after it is tested. only approximate.

func (*TimeoutMutex) TryLock

func (m *TimeoutMutex) TryLock(timeout time.Duration) bool

func (*TimeoutMutex) TryLockNoWait

func (m *TimeoutMutex) TryLockNoWait() bool

func (*TimeoutMutex) Unlock

func (m *TimeoutMutex) Unlock()

Jump to

Keyboard shortcuts

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