Exemplo n.º 1
0
 void QueueDispatcher<ChunkType>::receive ( ChunkType ret ) {
     queue.push_front( ret.getChunks() );
     if ( ! ret.isAsync() ) {
         haveEndOfInput = true;
     }
     if ( !isActive ) {
         // schedule self with IO service
         io.post(bind(&QueueDispatcher::senderLoop, this));
     }
 }