static void chResetThreadMain(object po) { object[] pa = (object[])po; int chId = (int)pa[0]; // parameters deserialization finished ConveyorBasicController.stD(chId * 2 + (chId <= 1 ? 1 : 0)); ConveyorBasicController.chD(chId); if (!stopWhenNoTask || taskCount != 0) { ConveyorBasicController.mrC(0); } }