diff options
| author | Dmitriy Vyukov <dvyukov@google.com> | 2013-03-05 09:46:52 +0200 |
|---|---|---|
| committer | Dmitriy Vyukov <dvyukov@google.com> | 2013-03-05 09:46:52 +0200 |
| commit | add334986778a09dce559f4d8b7ee69534abd47d (patch) | |
| tree | 9a34043cf6fc15ca93a904ca2dae23099f7ac310 /src/pkg/runtime/runtime.h | |
| parent | 2fe840f4f69bb1013ff5ae8968d8ab8257fb2d22 (diff) | |
| download | go-add334986778a09dce559f4d8b7ee69534abd47d.tar.xz | |
runtime: add atomic xchg64
It will be handy for network poller.
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/7429048
Diffstat (limited to 'src/pkg/runtime/runtime.h')
| -rw-r--r-- | src/pkg/runtime/runtime.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pkg/runtime/runtime.h b/src/pkg/runtime/runtime.h index 585d6a536e..8ed18432d8 100644 --- a/src/pkg/runtime/runtime.h +++ b/src/pkg/runtime/runtime.h @@ -691,6 +691,7 @@ bool runtime·casp(void**, void*, void*); uint32 runtime·xadd(uint32 volatile*, int32); uint64 runtime·xadd64(uint64 volatile*, int64); uint32 runtime·xchg(uint32 volatile*, uint32); +uint64 runtime·xchg64(uint64 volatile*, uint64); uint32 runtime·atomicload(uint32 volatile*); void runtime·atomicstore(uint32 volatile*, uint32); void runtime·atomicstore64(uint64 volatile*, uint64); |
