Documentation
¶
Index ¶
- func DialAndCallNoFail(addr string, fn string, args interface{}) (int, error)
- func EmptyIntChan(c <-chan int)
- func MaxInt64(a int64, b int64) int64
- func MinInt(a int, b int) int
- func RemoteCallNoFail(remote *rpc.Client, fn string, args interface{}, reply interface{}) error
- func RunRPC(s interface{}, addr string)
- func SliceFromMap(mymap map[string]IntClient) []string
- func SliceToMap(ss []string) map[string]IntClient
- func TakeAllInt64Chan(c <-chan int64) []int64
- type IntClient
- type MsgType
- type MutexState
- type Node
- type NodeType
- type SyncedSet
- type SyncedVal
- type Task
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DialAndCallNoFail ¶
DialAndCallNoFail dial and then do the remote call TODO is there a way to make the reply generic?
func RemoteCallNoFail ¶
RemoteCallNoFail does a remote.Call and logs failure
func SliceFromMap ¶
SliceFromMap does what it says
func SliceToMap ¶
SliceToMap is like the opposite of SliceFromMap
func TakeAllInt64Chan ¶
TakeAllInt64Chan returns a list with all the values in the buffered channel
Types ¶
type MsgType ¶
type MsgType int
MsgType includes all messages types other than job list manipulation
type MutexState ¶
type MutexState int
MutexState are all the possible states for Ricart-Agrawala algorithm
const ( StateReleased MutexState = iota StateWanted StateHeld )
func (MutexState) String ¶
func (i MutexState) String() string
type SyncedSet ¶
SyncedSet is a concurrent map
Click to show internal directories.
Click to hide internal directories.