MCPcopy Create free account
hub / github.com/celzero/firestack / Cas

Method Cas

intra/core/volatile.go:85–99  ·  view source on GitHub ↗

Cas compares and swaps the value of a with new, returns true if the value was swapped. If new is nil, returns true; and sets a to NewZeroVolatile[T] non-atomically. If a is nil or old & new are not of same concrete type, returns false.

(old, new T)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 15

RestartMethod · 0.45
StatusMethod · 0.45
StatusMethod · 0.45
StatusMethod · 0.45
StatusMethod · 0.45
PauseMethod · 0.45
ResumeMethod · 0.45
PauseMethod · 0.45
ResumeMethod · 0.45
PauseMethod · 0.45
ResumeMethod · 0.45
PauseMethod · 0.45

Calls 4

IsNilFunction · 0.85
TypeEqFunction · 0.85
loceqFunction · 0.85
CompareAndSwapMethod · 0.80

Tested by

no test coverage detected