atomic

package
v0.0.0-...-8e5b3a9 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2018 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bool

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

Bool is a wrapper around uint32 for usage as a boolean value with atomic access.

func (*Bool) IsSet

func (b *Bool) IsSet() bool

IsSet returns whether the current boolean value is true

func (*Bool) Set

func (b *Bool) Set(value bool)

Set sets the value of the bool regardless of the previous value

func (*Bool) TrySet

func (b *Bool) TrySet(value bool) bool

TrySet sets the value of the bool and returns whether the value has changed

Jump to

Keyboard shortcuts

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