Пример #1
0
        }         // proc UnregisterRunningThread

        private static void UnregisterThread(DEThreadBase thread)
        {
            lock (runningThreads)
            {
                // remove de-managed thread
                runningDEThreads.Remove(thread);
                UnregisterRunningThread(thread.thread);
            }
        }         // proc UnregisterThread
Пример #2
0
        }         // proc AddRunningThread

        private static void RegisterThread(DEThreadBase thread)
        {
            if (thread == null)
            {
                throw new ArgumentNullException("thread");
            }

            lock (runningThreads)
            {
                // append a de-managed thread
                runningDEThreads.Add(thread);
                AddRunningThread(thread.thread);
            }
        }         // proc RegisterThread
Пример #3
0
 /// <summary></summary>
 /// <param name="thread"></param>
 public DEThreadContext(DEThreadBase thread)
 => this.thread = thread;