Example #1
0
func (eng *Engine) peek() *C.pn_event_t { return C.pn_collector_peek(eng.collector) }
Example #2
0
func (eng *Engine) process() {
	for ce := C.pn_collector_peek(eng.collector); ce != nil; ce = C.pn_collector_peek(eng.collector) {
		eng.handle(makeEvent(ce, eng))
		C.pn_collector_pop(eng.collector)
	}
}