Пример #1
0
        public static Task ForNonBlocking(this IMyParallelTask parallel, int minInclusive, int maxExclusive,
                                          Action <int> act, int stride = 1)
        {
            var work = ForLoopWork.Get();

            work.Prepare(minInclusive, maxExclusive, stride, act);
            return(parallel.Start(work));
        }
Пример #2
0
        public static Task ForEachNonBlocking <T>(this IMyParallelTask parallel, IEnumerable <T> enumerable,
                                                  Action <T> act)
        {
            var work = ForEachWork <T> .Get();

            work.Prepare(act, enumerable.GetEnumerator());
            return(parallel.Start(work));
        }
Пример #3
0
 public static void Clean()
 {
     Session               = null;
     Entities              = null;
     Players               = null;
     CubeBuilder           = null;
     TerminalActionsHelper = null;
     Utilities             = null;
     Parallel              = null;
     Multiplayer           = null;
     PrefabManager         = null;
 }
Пример #4
0
 public static void Clean()
 {
     Session     = null;
     Entities    = null;
     Players     = null;
     CubeBuilder = null;
     if (IngameScripting != null)
     {
         IngameScripting.Clean();
     }
     IngameScripting       = null;
     TerminalActionsHelper = null;
     Utilities             = null;
     Parallel         = null;
     Physics          = null;
     Multiplayer      = null;
     PrefabManager    = null;
     Input            = null;
     TerminalControls = null;
 }
Пример #5
0
 public static void Clean()
 {
     Session = null;
     Entities = null;
     Players = null;
     CubeBuilder = null;
     TerminalActionsHelper = null;
     Utilities = null;
     Parallel = null;
     Multiplayer = null;
     PrefabManager = null;
     Input = null;
 }
 public static void Clean()
 {
     Session = null;
     Entities = null;
     Players = null;
     CubeBuilder = null;
     if (IngameScripting != null)
     {
         IngameScripting.Clean();
     }
     IngameScripting = null;
     TerminalActionsHelper = null;
     Utilities = null;
     Parallel = null;
     Physics = null;
     Multiplayer = null;
     PrefabManager = null;
     Input = null;
     TerminalControls = null;
 }