virtual int general_work(int noutput_items, gr_vector_int &ninput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items) { for (int i = 0; i < ninput_items[0]; i++){ ProcessVector(((float *)input_items[0]) + i * m_vector_length); } consume_each(ninput_items[0]); return 0; }
dsp_block::state dsp_sync_block::general_work() { dsp_sync_block::state st = work(); if (st == dsp_sync_block::READY) { consume_each(nfixedinput()); produce_each(nfixedoutput()); } return st; }