예제 #1
0
        public static IEnumerable <ITaskPrototype> Get(int count, TaskPriorityFlag priority)
        {
            UInt64 id = (((UInt64)count << 32) | (UInt64)priority);

            using (new Scope(tasksLock))
            {
                List <ITaskPrototype> tmp; if (!prototypes.TryGetValue(id, out tmp))
                {
                    tmp = new List <ITaskPrototype>();
                    prototypes.Add(id, tmp);
                }
                return(tmp.ToArray());
            }
        }
예제 #2
0
 public TaskPriorityAttribute(TaskPriorityFlag flag)
 {
     this.flag = flag;
 }