static Pair read_( tbb::flow_control& flow ) { if( queue.empty() || is_shutdown || !callback->good() || !std::cout.good() || !running ) { flow.stop(); return Pair(); } Pair p; queue.pop( p ); return p; }