sem

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const MAX_RETRY = 3

Variables

This section is empty.

Functions

This section is empty.

Types

type Semaphore

type Semaphore [32]byte

func New

func New(value uint) (*Semaphore, error)

func (*Semaphore) Destroy

func (sem *Semaphore) Destroy() error

func (*Semaphore) Post

func (sem *Semaphore) Post() error

func (*Semaphore) PostWithRetry

func (s *Semaphore) PostWithRetry(retry int)

func (*Semaphore) TryWait

func (sem *Semaphore) TryWait() error

todo error

func (*Semaphore) Wait

func (sem *Semaphore) Wait() error

func (*Semaphore) WaitwithTime

func (sem *Semaphore) WaitwithTime(time int64) error

Jump to

Keyboard shortcuts

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