示例#1
0
        public static void PreemptionDisable()
        {
            using (new WrapperSentry())
            {
                // need to insert dummy access before turning off preemptions
                // - otherwise too many schedules get eliminated
                MChessChess.SyncVarAccess(509, MSyncVarOp.RWVAR_READWRITE);
                MChessChess.CommitSyncVarAccess();

                MChessChess.PreemptionDisable();
            }
        }