rwmutex

package
v2.0.0-beta+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2019 License: BSD-2-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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) 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) 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