MCPcopy Create free account
hub / github.com/Cyinx/einx / WaitNotify

Method WaitNotify

event/ev_queue.go:63–70  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

61}
62
63func (this *EventQueue) WaitNotify() bool {
64 atomic.AddUint32(&this.w, 1)
65 if atomic.LoadInt32(&this.q) > 0 {
66 this.notify_one()
67 return false
68 }
69 return true
70}
71
72func (this *EventQueue) WaiterWake() {
73 this.notify_one()

Callers 2

RunMethod · 0.80
RunMethod · 0.80

Calls 1

notify_oneMethod · 0.95

Tested by

no test coverage detected