livelock

package
v0.0.0-...-ec98fb3 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewChopstick

func NewChopstick() *chopstick

Types

type PoliteChild

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

func (*PoliteChild) Eat

func (p *PoliteChild) Eat(ctx context.Context, wg *sync.WaitGroup, chopstick1, chopstick2 *chopstick)

func (*PoliteChild) IsHungry

func (p *PoliteChild) IsHungry() bool

Jump to

Keyboard shortcuts

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