package atomic

import "github.com/containerd/containerd/pkg/atomic"

Index

Types

type Bool

type Bool interface {
	Set()
	Unset()
	IsSet() bool
}

Bool is an atomic Boolean, Its methods are all atomic, thus safe to be called by multiple goroutines simultaneously.

func NewBool

func NewBool(ok bool) Bool

NewBool creates an Bool with given default value

Source Files

atomic_boolean.go

Version
v1.6.26
Published
Dec 8, 2023
Platform
windows/amd64
Imports
1 packages
Last checked
3 seconds ago

Tools for package owners.