pathrs-lite/internal/gocompat/gocompat_atomic_go119.go
raw| 1 | // SPDX-License-Identifier: BSD-3-Clause |
| 2 | |
| 3 | //go:build linux && go1.19 |
| 4 | |
| 5 | // Copyright 2022 The Go Authors. All rights reserved. |
| 6 | // Use of this source code is governed by a BSD-style |
| 7 | // license that can be found in the LICENSE file. |
| 8 | |
| 9 | package gocompat |
| 10 | |
| 11 | import ( |
| 12 | "sync/atomic" |
| 13 | ) |
| 14 | |
| 15 | // A Bool is an atomic boolean value. |
| 16 | // The zero value is false. |
| 17 | // |
| 18 | // Bool must not be copied after first use. |
| 19 | type Bool = atomic.Bool |