Beispiel #1
0
 /// <summary>
 /// Attempt to remove an item from a <see cref="BoundedBuffer"/>.
 /// </summary>
 /// <param name="activator">
 /// The object that activated this <see cref="BufferGet"/> DesTask.
 /// </param>
 /// <param name="data">
 /// Optional data for the <see cref="BufferGet"/> task.  This will
 /// normally be <see langword="null"/> or the item removed from the
 /// <see cref="BoundedBuffer"/>.
 /// </param>
 protected override void ExecuteTask(object activator, object data)
 {
     System.Diagnostics.Debug.Assert(activator != Blocker);
     Blocker.GetObject(this);
 }