/// <summary> /// 等待初始化的读取操作 /// </summary> /// <param name="node"></param> private void onStart(QueueTaskThread.Node node) { Monitor.Enter(onStartQueueLock); try { if (isStartQueue) { node.AddQueueTaskLinkThread(); } else { onStartQueue.Push(node); } } finally { Monitor.Exit(onStartQueueLock); } }
/// <summary> /// 等待初始化的读取操作 /// </summary> /// <param name="node"></param> private void onStart(QueueTaskThread.Node node) { Monitor.Enter(onStartQueueLock); try { if (isStartQueue) { QueueTaskThread.Thread.Default.Add(node); } else { onStartQueue.Push(node); } } finally { Monitor.Exit(onStartQueueLock); } }