MCPcopy Index your code
hub / github.com/Cyinx/einx / exchange

Method exchange

queue/rw_queue.go:32–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30}
31
32func (this *RWQueue) exchange() bool {
33 temp_queue := this.write_queue
34 if temp_queue.empty() == true {
35 return false
36 }
37 this.write_queue = this.read_queue
38 this.read_queue = temp_queue
39 return true
40}
41
42func (this *RWQueue) Push(event interface{}) {
43 this.write_lock.Lock()

Callers 2

GetMethod · 0.95
GetOneMethod · 0.95

Calls 1

emptyMethod · 0.80

Tested by

no test coverage detected