concurrent

package
v1.0.34 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 17, 2026 License: Apache-2.0 Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Synchronized

func Synchronized(mutex *sync.Mutex, operation func())

func SynchronizedWithCondition

func SynchronizedWithCondition(mutex *sync.Mutex, cond *sync.Cond, operation func(cond *sync.Cond))

func WaitWithTimeout

func WaitWithTimeout(cond *sync.Cond, timeout time.Duration) bool

CondWaitTimeout waits on condition until it is signaled or timeout elapses. It returns true if the timeout timer did NOT fire before we stopped it (i.e. wake was likely due to some other Signal/Broadcast), and false if the timeout timer has been fired.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL