コード例 #1
0
ファイル: BlockRevQueue.cs プロジェクト: sharwell/ngit
 /// <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);
     }
 }
コード例 #2
0
 /// <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);
     }
 }
コード例 #3
0
ファイル: BlockRevQueue.cs プロジェクト: sharwell/ngit
 /// <summary>Create an empty revision queue.</summary>
 /// <remarks>Create an empty revision queue.</remarks>
 public BlockRevQueue()
 {
     free = new BlockRevQueue.BlockFreeList();
 }
コード例 #4
0
ファイル: BlockRevQueue.cs プロジェクト: sharwell/ngit
 /// <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;
 }
コード例 #5
0
 /// <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;
 }
コード例 #6
0
 /// <summary>Create an empty revision queue.</summary>
 /// <remarks>Create an empty revision queue.</remarks>
 public BlockRevQueue()
 {
     free = new BlockRevQueue.BlockFreeList();
 }