Ejemplo n.º 1
0
        internal void InjectElement(Pointstamp time, Int64 update)
        {
            // by directly modifying the PCS, we don't risk sending anything from the centralizer. Used only for initializing inputs.
            Tracing.Trace("(PCSLock");
            Monitor.Enter(this.PCS);

            var frontierChanged = PCS.UpdatePointstampCount(time, update);

            Monitor.Exit(this.PCS);
            Tracing.Trace(")PCSLock");
        }
        internal void InjectElement(Pointstamp time, Int64 update)
        {
            // by directly modifying the PCS, we don't risk sending anything from centralizer. Used only for initializing inputs.
            NaiadTracing.Trace.LockAcquire(this.PCS);
            Monitor.Enter(this.PCS);
            NaiadTracing.Trace.LockHeld(this.PCS);

            var progressChanged = PCS.UpdatePointstampCount(time, update);

            Monitor.Exit(this.PCS);
            NaiadTracing.Trace.LockRelease(this.PCS);
        }