sync

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Semaphore

type Semaphore interface {
	Acquire()
	Release()
}

* A Semaphore provides synchronized access to a constrained ressource.

func CreateSemaphore

func CreateSemaphore(limit uint32) Semaphore

* Creates a new Semaphore with a specific limit for concurrent access.

Jump to

Keyboard shortcuts

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