예제 #1
0
func gringoProducer(outGringo *gringo.Gringo, done chan int) {
	var i uint64
	for ; i < size; i++ {
		outGringo.Write(pl)
	}
	done <- 0
}
예제 #2
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
}