KiloWatt.Runtime.Support.ThreadPoolComponent.Reclaim C# (CSharp) Метод

Reclaim() приватный Метод

private Reclaim ( TaskContext ctx ) : void
ctx TaskContext
Результат void
        internal void Reclaim(TaskContext ctx)
        {
            lock (this)
              {
            ctx.next_ = taskContextList_;
            taskContextList_ = ctx;
              }
        }

Usage Example

Пример #1
0
        /// <summary>
        /// Wait will wait for the given task to complete, and then dispose
        /// the context. After Wait() returns, you should do nothing else to
        /// the context.
        /// </summary>
        public void Wait()
        {
            if (Worker == null)
            {
                throw new ObjectDisposedException("TaskContext.Wait()");
            }

            Worker = null;
            Event.WaitOne();
            ThreadPoolComponent.Reclaim(this);
        }
All Usage Examples Of KiloWatt.Runtime.Support.ThreadPoolComponent::Reclaim