boolAm

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Boolean

type Boolean uint32

Boolean is a boolean value which can be accessed and modified atomically.

func (*Boolean) GetBoolAtomic

func (b *Boolean) GetBoolAtomic() bool

GetBoolAtomic returns the value of b. The operation is atomic and read the value atomically.

func (*Boolean) SetBoolAtomic

func (b *Boolean) SetBoolAtomic(v bool)

SetBoolAtomic sets the value of b. The operation is atomic and write the value atomically. If v is true, the value is set to 1. If v is false, the value is set to 0. The value of b is not guaranteed to be 1 or 0 if v is not true or false.

Jump to

Keyboard shortcuts

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