コード例 #1
0
        /// <summary>
        /// Stops the block rendering worker.
        /// </summary>
        private void StopBlockRenderingWorker()
        {
            if (BlockRenderingWorkerExit == null)
            {
                return;
            }

            BlockRenderingWorkerExit?.Wait();
            BlockRenderingWorker?.Dispose();
            BlockRenderingWorker = null;
            BlockRenderingWorkerExit?.Dispose();
            BlockRenderingWorkerExit = null;
        }
コード例 #2
0
        /// <summary>
        /// Stops the block rendering worker.
        /// </summary>
        private void StopBlockRenderingWorker()
        {
            if (HasBlockRenderingWorkerExited == null)
            {
                return;
            }

            HasBlockRenderingWorkerExited.WaitOne();
            BlockRenderingWorker?.Dispose();
            BlockRenderingWorker = null;
            HasBlockRenderingWorkerExited.Dispose();
            HasBlockRenderingWorkerExited = null;
        }