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
Click to show internal directories.
Click to hide internal directories.