lockpool

package
v0.0.0-...-b26f8fd Latest Latest
Warning

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

Go to latest
Published: May 24, 2016 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Lock

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

Lock is a lock pool's lock

type Pool

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

Pool is a lock pool

func New

func New() *Pool

New get a lock pool instance

func (*Pool) Lock

func (p *Pool) Lock(key string)

Lock RWMutex lock

func (*Pool) RLock

func (p *Pool) RLock(key string)

RLock RWMutex RLock

func (*Pool) RUnlock

func (p *Pool) RUnlock(key string)

RUnlock RWMutex Runlock

func (*Pool) Unlock

func (p *Pool) Unlock(key string)

Unlock RWMutex unlock

Jump to

Keyboard shortcuts

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