Ejemplo n.º 1
0
        public static void Start(IThread Thread)
        {
            var Factory = SingletonFactory.GetInstance <ThreadFactory>();
            var ID      = Thread.GetHashCode();

            if (!Factory.Tasks.ContainsKey(ID))
            {
                lock (Factory.syncLock)
                    Factory.Tasks.Add(ID, new ThreadTask(Thread));
            }

            Start(ID);
        }
Ejemplo n.º 2
0
 public static bool IsRunning(IThread Thread)
 {
     return(IsRunning(Thread.GetHashCode()));
 }
Ejemplo n.º 3
0
 public static void Stop(IThread Thread)
 {
     Stop(Thread.GetHashCode());
 }