MCPcopy
hub / github.com/olric-data/olric / Add

Method Add

internal/roundrobin/round_robin.go:68–73  ·  view source on GitHub ↗

Add adds a new item to the Round-Robin scheduler.

(item string)

Source from the content-addressed store, hash-verified

66
67// Add adds a new item to the Round-Robin scheduler.
68func (r *RoundRobin) Add(item string) {
69 r.mtx.Lock()
70 defer r.mtx.Unlock()
71
72 r.items = append(r.items, item)
73}
74
75// Delete deletes an item from the Round-Robin scheduler.
76func (r *RoundRobin) Delete(item string) {

Callers 15

TestLockerConcurrencyFunction · 0.45
TestDMap_Put_EXATFunction · 0.45
TestDMap_Put_PXATFunction · 0.45
asyncPutOnClusterMethod · 0.45
StartMethod · 0.45
TestDMap_Atomic_IncrFunction · 0.45
TestDMap_Atomic_DecrFunction · 0.45
TestDMap_Atomic_GetPutFunction · 0.45
triggerCompactionMethod · 0.45

Calls 2

LockMethod · 0.65
UnlockMethod · 0.65

Tested by 15

TestLockerConcurrencyFunction · 0.36
TestDMap_Put_EXATFunction · 0.36
TestDMap_Put_PXATFunction · 0.36
TestDMap_Atomic_IncrFunction · 0.36
TestDMap_Atomic_DecrFunction · 0.36
TestDMap_Atomic_GetPutFunction · 0.36
TestRoundRobinFunction · 0.36