diff options
| author | Chris Wendt <chrismwendt@gmail.com> | 2022-06-08 01:35:20 -0600 |
|---|---|---|
| committer | Chris Wendt <chrismwendt@gmail.com> | 2022-06-08 01:35:20 -0600 |
| commit | 53b98cfddef7afcb79d8a1b35fb186b58426c1d4 (patch) | |
| tree | 377c94fe85502b2525615dbc51d68d6a3ec0e1e9 /funcs.go | |
| parent | go mod tidy (diff) | |
| download | stm-53b98cfddef7afcb79d8a1b35fb186b58426c1d4.tar.gz stm-53b98cfddef7afcb79d8a1b35fb186b58426c1d4.tar.xz | |
use generic atomic
Diffstat (limited to '')
| -rw-r--r-- | funcs.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -105,7 +105,7 @@ retry: // AtomicGet is a helper function that atomically reads a value. func AtomicGet(v *Var) interface{} { - return v.value.Load().(VarValue).Get() + return v.value.Load().Get() } // AtomicSet is a helper function that atomically writes a value. |
