()
| 61 | } |
| 62 | |
| 63 | func (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 | |
| 72 | func (this *EventQueue) WaiterWake() { |
| 73 | this.notify_one() |
no test coverage detected