go_semaphore_example

package module
v0.0.0-...-80fcb9d Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2021 License: MIT Imports: 0 Imported by: 0

README

go-semaphore-example

example for go semaphore usage

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Barrier

type Barrier interface {
	Wait()
}

func NewBarrier

func NewBarrier(n int) Barrier

type Locker

type Locker interface {
	Lock()
	Unlock()
}

func NewLocker

func NewLocker() Locker

type Semaphore

type Semaphore interface {
	Signal()
	MultiSignal(n int)
	Wait()
}

func NewSemaphore

func NewSemaphore(v int) Semaphore

Jump to

Keyboard shortcuts

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