Source File
int64.go
Belonging Package
nhooyr.io/websocket/internal/xsync
package xsync
import (
)
// Int64 represents an atomic int64.
type Int64 struct {
// We do not use atomic.Load/StoreInt64 since it does not
// work on 32 bit computers but we need 64 bit integers.
i atomic.Value
}
// Load loads the int64.
func ( *Int64) () int64 {
, := .i.Load().(int64)
return
}
// Store stores the int64.
func ( *Int64) ( int64) {
.i.Store()
}
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |