Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Philosopher ¶
type Philosopher struct {
// contains filtered or unexported fields
}
func NewPhilosopher ¶
func NewPhilosopher(table *dining.Table, seat int) *Philosopher
func (*Philosopher) AcquireForks ¶
func (p *Philosopher) AcquireForks()
func (*Philosopher) Dine ¶
func (p *Philosopher) Dine()
func (*Philosopher) Eat ¶
func (p *Philosopher) Eat()
func (*Philosopher) EatsCount ¶
func (p *Philosopher) EatsCount() int
func (*Philosopher) ReleaseForks ¶
func (p *Philosopher) ReleaseForks()
func (*Philosopher) Think ¶
func (p *Philosopher) Think()
Click to show internal directories.
Click to hide internal directories.