package
0.0.0-20240720002214-37b2b8227b91
Repository: https://github.com/progrium/go-netstack.git
Documentation: pkg.go.dev
# Packages
Package locking implements lock primitives with the correctness validator.
# Functions
Gopark is runtime.gopark.
Goready is runtime.goready.
Goyield is runtime.goyield, which is similar to runtime.Gosched but only yields the processor to other goroutines already on the processor's runqueue.
MapKeyHasher returns a hash function for pointers of m's key type.
MemoryFenceReads ensures that all preceding memory loads happen before following memory loads.
NewCond is a wrapper around sync.NewCond.
RaceAcquire has the same semantics as runtime.RaceAcquire.
RaceDisable has the same semantics as runtime.RaceDisable.
RaceEnable has the same semantics as runtime.RaceEnable.
RaceRelease has the same semantics as runtime.RaceRelease.
RaceReleaseMerge has the same semantics as runtime.RaceReleaseMerge.
RaceUncheckedAtomicCompareAndSwapUintptr is equivalent to sync/atomic.CompareAndSwapUintptr, but is not checked by the race detector.
Rand32 returns a non-cryptographically-secure random uint32.
Rand64 returns a non-cryptographically-secure random uint64.
RandUintptr returns a non-cryptographically-secure random uintptr.
Wakep is runtime.wakep.
# Constants
RaceEnabled is true if the Go data race detector is enabled.
+checkconst runtime traceEvGoBlockRecv.
+checkconst runtime traceEvGoBlockSelect.
+checkconst runtime traceEvGoBlockSync.
+checkconst runtime waitReasonChanReceive.
+checkconst runtime waitReasonSelect.
+checkconst runtime waitReasonSemacquire.
# Structs
CrossGoroutineMutex is equivalent to Mutex, but it need not be unlocked by a the same goroutine that locked the mutex.
CrossGoroutineRWMutex is equivalent to RWMutex, but it need not be unlocked by a the same goroutine that locked the mutex.
Gate is a synchronization primitive that allows concurrent goroutines to "enter" it as long as it hasn't been closed yet.
Mutex is a mutual exclusion lock.
NoCopy may be embedded into structs which must not be copied after the first use.
A RWMutex is a reader/writer mutual exclusion lock.
SeqCount is a synchronization primitive for optimistic reader/writer synchronization in cases where readers can work with stale data and therefore do not need to block writers.
# Type aliases
Aliases of standard library types.
Aliases of standard library types.
Aliases of standard library types.
Aliases of standard library types.
Aliases of standard library types.
SeqCountEpoch tracks writer critical sections in a SeqCount.
Aliases of standard library types.