golang/src/sync
Austin Clements 960fa9bf66 sync: add examples for OnceValue and OnceValues
Updates #56102.

Change-Id: I2ee2dbc43b4333511d9d23752fdc574dfbf5f5bd
Reviewed-on: https://go-review.googlesource.com/c/go/+/481062
Reviewed-by: Andrew Gerrand <adg@golang.org>
Auto-Submit: Austin Clements <austin@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Joedian Reid <joedian@google.com>
2024-04-23 17:45:47 +00:00
..
atomic runtime: migrate internal/atomic to internal/runtime 2024-03-25 19:53:03 +00:00
cond.go sync: add available godoc link 2024-02-26 20:48:55 +00:00
cond_test.go sync: fix TestCondSignalStealing flake 2023-03-22 18:52:42 +00:00
example_pool_test.go all: gofmt -w -r 'interface{} -> any' src 2021-12-13 18:45:54 +00:00
example_test.go sync: add examples for OnceValue and OnceValues 2024-04-23 17:45:47 +00:00
export_test.go all: make more use of the new atomic integer types 2023-11-17 16:39:52 +00:00
map.go sync: name the Map.CompareAndSwap return value 2024-03-21 00:52:58 +00:00
map_bench_test.go sync: add Map.Clear 2024-02-01 15:34:22 +00:00
map_reference_test.go sync: add Map.Clear 2024-02-01 15:34:22 +00:00
map_test.go sync: add Map.Clear 2024-02-01 15:34:22 +00:00
mutex.go sync: add available godoc link 2024-02-26 20:48:55 +00:00
mutex_test.go runtime: write much more direct test for semaphore waiter scalability 2022-06-16 21:25:35 +00:00
once.go sync: add available godoc link 2024-02-26 20:48:55 +00:00
once_test.go
oncefunc.go sync: do not unnecessarily keep alive functions wrapped by Once(Func|Value|Values) 2023-11-21 17:31:33 +00:00
oncefunc_test.go sync: do not unnecessarily keep alive functions wrapped by Once(Func|Value|Values) 2023-11-21 17:31:33 +00:00
pool.go runtime: migrate internal/atomic to internal/runtime 2024-03-25 19:53:03 +00:00
pool_test.go sync: panic rather than throw on nil *Pool 2023-07-31 22:18:47 +00:00
poolqueue.go sync: simplify the code with atomic.Pointer 2024-02-26 18:12:29 +00:00
runtime.go runtime: make the wait reason for a g blocked on a mutex more specific 2022-09-16 16:32:27 +00:00
runtime2.go all: go fix -fix=buildtag std cmd (except for bootstrap deps, vendor) 2021-10-28 18:17:57 +00:00
runtime2_lockrank.go all: go fix -fix=buildtag std cmd (except for bootstrap deps, vendor) 2021-10-28 18:17:57 +00:00
runtime_sema_test.go sync: allow inlining the Mutex.Unlock fast path 2019-03-05 14:59:31 +00:00
rwmutex.go sync: add available godoc link 2024-02-26 20:48:55 +00:00
rwmutex_test.go sync: add Mutex.TryLock, RWMutex.TryLock, RWMutex.TryRLock 2021-10-29 17:13:13 +00:00
waitgroup.go sync: add available godoc link 2024-02-26 20:48:55 +00:00
waitgroup_test.go sync: remove TestWaitGroupMisuse2 and TestWaitGroupMisuse3 2021-10-14 17:38:39 +00:00