encoder_thread prototype commented