synci

package
v0.0.0-...-f5948c0 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddFloat32

func AddFloat32(addr *float32, delta float32) (new float32)

func AddFloat64

func AddFloat64(addr *float64, delta float64) (new float64)

AddFloat64 add delta to given address atomically

func WaitGroupState

func WaitGroupState(wg *sync.WaitGroup) (counter int32, wcounter uint32)

WaitGroupState返回 sync.WaitGroup 的状态,

func WaitGroupStopWait

func WaitGroupStopWait(wg *sync.WaitGroup)

Types

type WaitGroup

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

运行计数,等待计数,信号计数

func (*WaitGroup) State

func (wg *WaitGroup) State() (counter int32, wcounter uint32)

Jump to

Keyboard shortcuts

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