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