Example #1
0
        /// <summary>
        /// Create a new <c>SingletonGlTask</c> that confines tasks to the
        /// given queue.
        /// </summary>
        /// <param name="taskQueue">The queue to which tasks will be confined</param>
        public SingletonGlTask(GlTaskQueue taskQueue)
        {
            if (taskQueue == null)
            {
            throw new NullReferenceException("taskQueue");
            }

            this.impl = new Impl(taskQueue);
        }
Example #2
0
 public Impl(GlTaskQueue taskQueue)
 {
     this.taskQueue = taskQueue;
     this.wrappedTask = null;
 }