DataPackets/MainTestHarness.cpp
/*
	Each producer's cycle uses FloatNumberSequenceGenerator to generate package of random size and pushes
	generated packet to the queue.
*/
Each producer's cycle uses FloatNumberSequenceGenerator to generate package of random size and pushes
generated packet to the queue.
Each producer ' s cycle uses FloatNumberSequenceGenerator to generate package of random size and pushes generated packet to the queue .
void producerWorker(PacketQueue* packetQueuePointer) {
	PacketQueue& packetQueue = *packetQueuePointer;
	IAmPacketGenerator& packetGenerator = FloatNumberSequenceGenerator(MAXIMAL_INPUT_PACKET_SIZE);
	for (;;) {
		const Packet& packet = packetGenerator.GenerateRandomLength();
		packetQueue.Push(packet);
		Sleep(1000);
	}
}
void producerWorker ( PacketQueue * packetQueuePointer ) { PacketQueue & packetQueue = * packetQueuePointer ; IAmPacketGenerator & packetGenerator = FloatNumberSequenceGenerator ( MAXIMAL_INPUT_PACKET_SIZE ) ; for ( ; ; ) { const Packet & packet = packetGenerator . GenerateRandomLength ( ) ; packetQueue . Push ( packet ) ; Sleep ( 1000 ) ; } }
Each producer's cycle uses FloatNumberSequenceGenerator to generate package of random size and pushes
generated packet to the queue.
Each producer ' s cycle uses FloatNumberSequenceGenerator to generate package of random size and pushes generated packet to the queue .