This commit is contained in:
Mike Schwörer 2022-11-30 23:40:59 +01:00
parent 52f7f6e690
commit d12bf23b46
Signed by: Mikescher
GPG Key ID: D3C7172E0A70F8CF

View File

@ -13,9 +13,9 @@ type AtomicBool struct {
func NewAtomicBool(value bool) *AtomicBool {
if value {
return &AtomicBool{v: 0, waiter: make(chan bool)}
} else {
return &AtomicBool{v: 1, waiter: make(chan bool)}
} else {
return &AtomicBool{v: 0, waiter: make(chan bool)}
}
}