Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CausalMemory ¶
type CausalMemory struct { LocalMem []interface{} // contains filtered or unexported fields }
func (*CausalMemory) Broadcast ¶
func (c *CausalMemory) Broadcast(msg *CausalMsg)
func (*CausalMemory) Init ¶
func (c *CausalMemory) Init(pID int, size int, memberN int) bool
Init initialize the local memory with process id, size of memory, and the number of nodes.
func (*CausalMemory) Stopped ¶
func (c *CausalMemory) Stopped() bool
Stopped testify if the memory is stopped.
func (*CausalMemory) Write ¶
func (c *CausalMemory) Write(key int, value interface{})
Write local write.
type SharedMemory ¶
type SharedMemory interface {}
Click to show internal directories.
Click to hide internal directories.