Beispiel #1
0
func gringoProducer(outGringo *gringo.Gringo, done chan int) {
	var i uint64
	for ; i < size; i++ {
		outGringo.Write(pl)
	}
	done <- 0
}
Beispiel #2
0
func gringoConsumer(inGringo *gringo.Gringo, done chan int) {
	var i uint64
	for ; i < size; i++ {
		var rez gringo.Payload = inGringo.Read()
		noopPayload(rez)
	}
	done <- 0
}
Beispiel #3
0
func gringoForwarder(inGringo *gringo.Gringo, outGringo *gringo.Gringo, done chan int) {
	var i uint64
	for ; i < size; i++ {
		var rez gringo.Payload = inGringo.Read()
		outGringo.Write(rez)
	}
	done <- 0
}