gorcu

package module
v0.0.0-...-b0e6784 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

README

gorcu

RCU(read-copy update) for go.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrIdExceedsMax = errors.New("id exceeds maximum number")
)

Functions

This section is empty.

Types

type RCUQsbr

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

func NewRCUQsbr

func NewRCUQsbr(maxGoroutines uint32) *RCUQsbr

func (*RCUQsbr) Check

func (rq *RCUQsbr) Check(version uint64, wait bool) bool

func (*RCUQsbr) NumGoroutines

func (rq *RCUQsbr) NumGoroutines() uint32

func (*RCUQsbr) Offline

func (rq *RCUQsbr) Offline(id uint32)

func (*RCUQsbr) Online

func (rq *RCUQsbr) Online(id uint32)

func (*RCUQsbr) Quiescent

func (rq *RCUQsbr) Quiescent(id uint32)

func (*RCUQsbr) Register

func (rq *RCUQsbr) Register(id uint32) error

* Register a goroutine to report its quiescent state

func (*RCUQsbr) UnRegister

func (rq *RCUQsbr) UnRegister(id uint32) error

* Remove a goroutine from the bitmap

func (*RCUQsbr) Update

func (rq *RCUQsbr) Update() uint64

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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