rwmutex

package
v2.0.0-beta-77-g24ffd2... Latest Latest
Warning

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

Go to latest
Published: May 13, 2019 License: BSD-2-Clause Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DEBUG_LOCKS = false
View Source
var WAIT_TIMEOUT = time.Minute * 3

Functions

This section is empty.

Types

type RWMutex

type RWMutex struct {
	Name string `bson:"-" json:"-"`
	// contains filtered or unexported fields
}

func (*RWMutex) Init

func (m *RWMutex) Init(name string)

func (*RWMutex) Lock

func (m *RWMutex) Lock() (err error)

func (*RWMutex) LockNamed

func (m *RWMutex) LockNamed(name string) (err error)

func (*RWMutex) LockNamedTimeout

func (m *RWMutex) LockNamedTimeout(name string, timeout time.Duration) (err error)

func (*RWMutex) RCount

func (m *RWMutex) RCount() (c int)

func (*RWMutex) RList

func (m *RWMutex) RList() (list []string)

func (*RWMutex) RLock

func (m *RWMutex) RLock()

func (*RWMutex) RLockAnon

func (m *RWMutex) RLockAnon()

func (*RWMutex) RLockNamed

func (m *RWMutex) RLockNamed(name string) (rl ReadLock, err error)

func (*RWMutex) RLockNamedTimeout

func (m *RWMutex) RLockNamedTimeout(name string, timeout time.Duration) (rl ReadLock, err error)

func (*RWMutex) RUnlock

func (m *RWMutex) RUnlock()

func (*RWMutex) RUnlockAnon

func (m *RWMutex) RUnlockAnon()

func (*RWMutex) RUnlockNamed

func (m *RWMutex) RUnlockNamed(rl ReadLock)

func (*RWMutex) Unlock

func (m *RWMutex) Unlock()

type ReadLock

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

func (*ReadLock) Get_Id

func (r *ReadLock) Get_Id() string

type StringLocked

type StringLocked struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func (*StringLocked) Get

func (s *StringLocked) Get() string

func (*StringLocked) Set

func (s *StringLocked) Set(value string)

Jump to

Keyboard shortcuts

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