示例#1
0
        /// <summary>
        /// Constructor used by deserialization
        /// </summary>
        private PipTable(PageablePipStore store, ConcurrentDenseIndex <MutablePipState> mutables, int pipCount, int maxDegreeOfParallelism)
        {
            Contract.Requires(store != null);
            Contract.Requires(mutables != null);

            m_lastId   = pipCount;
            m_count    = pipCount;
            m_store    = store;
            m_mutables = mutables;

            m_serializationScheduler = new PipTableSerializationScheduler(maxDegreeOfParallelism, debug: false, serializer: ProcessQueueItem);
            m_serializationScheduler.Complete(); // Don't allow more changes
        }
示例#2
0
 /// <summary>
 /// Don't allow more changes
 /// </summary>
 private void Complete(int pipCount)
 {
     m_lastId = pipCount;
     m_count  = pipCount;
     m_serializationScheduler.Complete();
 }