Example #1
0
        /** 即将关闭(IO线程) */
        protected void preBeClose(int way)
        {
            // Ctrl.debugLogForIO("preBeClose",way);

            doClose();

            if (_clozed)
            {
                return;
            }

            _clozed = true;

            Ctrl.debugLogForIO("preBeClose2", way, this.GetHashCode());

            ThreadControl.addMainFunc(() =>
            {
                if (checkIsCurrent())
                {
                    _parent.beClose();
                }
            });
        }