semaphore

package
v0.0.0-...-5085e7c Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PrioritySemaphore

type PrioritySemaphore struct {
	// contains filtered or unexported fields
}

func NewPrioritySemaphore

func NewPrioritySemaphore(capacity int) *PrioritySemaphore

func (*PrioritySemaphore) Acquire

func (s *PrioritySemaphore) Acquire(priority int)

func (*PrioritySemaphore) Release

func (s *PrioritySemaphore) Release()

type Semaphore

type Semaphore struct {
	// contains filtered or unexported fields
}

func NewSemaphore

func NewSemaphore(capacity int) *Semaphore

func (Semaphore) Acquire

func (s Semaphore) Acquire()

func (Semaphore) Close

func (s Semaphore) Close()

func (Semaphore) Release

func (s Semaphore) Release()

Jump to

Keyboard shortcuts

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