예제 #1
0
        public ITCIdentityFactory(uint initialSize, uint batchSize)
        {
			m_batchSize = batchSize;

			m_root = ITCIdentity.CreateRootID();
            m_freelist = new ConcurrentDictionary<itc.Identity, FreelistEntry>();

            var entry = CausallyExpand(m_root, initialSize);
            entry.entryLock = new object();
            if (!m_freelist.TryAdd(m_root.GetImpl(), entry))
                throw new ApplicationException("ITCIdentityFactory being dereferenced while constructing");
        }
예제 #2
0
 public ITCTimestamp(ITCIdentity id, ITCEvent event_)
 {
     m_IdCache = id;
     m_EventCache = event_;
     m_impl = new itc.TimeStamp(id.GetImpl(), event_.GetImpl());
 }