/// <exception cref="NGit.Errors.MissingObjectException"></exception> /// <exception cref="NGit.Errors.IncorrectObjectTypeException"></exception> /// <exception cref="System.IO.IOException"></exception> internal BlockRevQueue(Generator s) { free = new BlockRevQueue.BlockFreeList(); outputType = s.OutputType(); s.ShareFreeList(this); for (; ; ) { RevCommit c = s.Next(); if (c == null) { break; } Add(c); } }
/// <exception cref="NGit.Errors.MissingObjectException"></exception> /// <exception cref="NGit.Errors.IncorrectObjectTypeException"></exception> /// <exception cref="System.IO.IOException"></exception> internal BlockRevQueue(Generator s) { free = new BlockRevQueue.BlockFreeList(); outputType = s.OutputType(); s.ShareFreeList(this); for (; ;) { RevCommit c = s.Next(); if (c == null) { break; } Add(c); } }
/// <summary>Create an empty revision queue.</summary> /// <remarks>Create an empty revision queue.</remarks> public BlockRevQueue() { free = new BlockRevQueue.BlockFreeList(); }
/// <summary>Reconfigure this queue to share the same free list as another.</summary> /// <remarks> /// Reconfigure this queue to share the same free list as another. /// <p/> /// Multiple revision queues can be connected to the same free list, making /// it less expensive for applications to shuttle commits between them. This /// method arranges for the receiver to take from / return to the same free /// list as the supplied queue. /// <p/> /// Free lists are not thread-safe. Applications must ensure that all queues /// sharing the same free list are doing so from only a single thread. /// </remarks> /// <param name="q">the other queue we will steal entries from.</param> internal override void ShareFreeList(NGit.Revwalk.BlockRevQueue q) { free = q.free; }
/// <summary>Reconfigure this queue to share the same free list as another.</summary> /// <remarks> /// Reconfigure this queue to share the same free list as another. /// <p> /// Multiple revision queues can be connected to the same free list, making /// it less expensive for applications to shuttle commits between them. This /// method arranges for the receiver to take from / return to the same free /// list as the supplied queue. /// <p> /// Free lists are not thread-safe. Applications must ensure that all queues /// sharing the same free list are doing so from only a single thread. /// </remarks> /// <param name="q">the other queue we will steal entries from.</param> internal override void ShareFreeList(NGit.Revwalk.BlockRevQueue q) { free = q.free; }