예제 #1
0
파일: API.cs 프로젝트: sahilagnihotri/Chess
        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();
            }
        }