示例#1
0
 internal void AddDependency(QueueItem dependency)
 {
     processor.Dispatch(_ => dependencies = dependencies.Add(dependency));
 }
示例#2
0
 /// <summary>
 /// Enqueues the specified dependent to only execute after the specified dependency has finished.  If this
 /// dependency has already finished, then it will simply be enqueued on the main processor.
 /// </summary>
 public QueueItem EnqueueDependent(QueueItem dependency, QueueItemType type, QueueAction action)
 {
     return(EnqueueDependent(new[] { dependency }, type, action));
 }
示例#3
0
 internal void EnqueueDependent(QueueItem dependent)
 {
     processor.Dispatch(_ => dependents = dependents.Enqueue(dependent));
 }
示例#4
0
 /// <summary>
 /// Enqueues the specified dependent to only execute after the specified dependency has finished.  If this
 /// dependency has already finished, then it will simply be enqueued on the main processor.
 /// </summary>
 public void EnqueueDependent(QueueItem dependency, QueueItem dependent)
 {
     EnqueueDependent(new[] { dependency }, dependent);
 }