v0.0.27
This commit is contained in:
parent
52f7f6e690
commit
d12bf23b46
@ -13,9 +13,9 @@ type AtomicBool struct {
|
|||||||
|
|
||||||
func NewAtomicBool(value bool) *AtomicBool {
|
func NewAtomicBool(value bool) *AtomicBool {
|
||||||
if value {
|
if value {
|
||||||
return &AtomicBool{v: 0, waiter: make(chan bool)}
|
|
||||||
} else {
|
|
||||||
return &AtomicBool{v: 1, waiter: make(chan bool)}
|
return &AtomicBool{v: 1, waiter: make(chan bool)}
|
||||||
|
} else {
|
||||||
|
return &AtomicBool{v: 0, waiter: make(chan bool)}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user