Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/CodisLabs/codis
/ toInt64
Method
toInt64
pkg/utils/sync2/atomic2/bool.go:22–28 ·
view source on GitHub ↗
(v bool)
Source
from the content-addressed store, hash-verified
20
}
21
22
func
(b *Bool) toInt64(v bool) int64 {
23
if
v {
24
return
1
25
}
else
{
26
return
0
27
}
28
}
29
30
func
(b *Bool) Set(v bool) {
31
b.c.Set(b.toInt64(v))
Callers
3
Set
Method · 0.95
CompareAndSwap
Method · 0.95
Swap
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected