예제 #1
0
파일: Q.cs 프로젝트: pjc0247/Rinity2
        public static QTask Create(Action callback,
                                   QTargetThread type,
                                   QTaskOption option = QTaskOption.None)
        {
            var task = new QTask(null, callback, type, option);

            return(task);
        }
예제 #2
0
파일: Q.cs 프로젝트: pjc0247/Rinity2
        private QTask(QTask parent, Action callback, QTargetThread type, QTaskOption option)
        {
            this.syncObject = new object();

            this.parent   = parent;
            this.callback = callback;
            this.chains   = new List <QTask>();
            this.type     = type;
            this.option   = option;
        }