rnglock

package
v0.0.0-...-6f42548 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2014 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const InvalidLockId = LockId(-1)

Variables

This section is empty.

Functions

This section is empty.

Types

type LockId

type LockId int64

type RangeLock

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

func New

func New() *RangeLock

func (*RangeLock) Close

func (rl *RangeLock) Close()

func (*RangeLock) Lock

func (rl *RangeLock) Lock(owner, start, end int64, isRead bool) LockId

func (*RangeLock) Unlock

func (rl *RangeLock) Unlock(lock LockId)

Jump to

Keyboard shortcuts

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