Ejemplo n.º 1
0
        /// <summary>
        /// Notify the owner of this endpoint that a message is ready.
        /// Notifies the set owner if this endpoint is part of a set.
        /// </summary>
        public void Notify()
        {
            this.receiveCount++;
            Tracing.Log(Tracing.Debug, "Endpoint Notify");

            // NB: Cache the collection event to prevent
            // a race with the receiver.
            AutoResetEventHandle cached_collEvent = endpoint->CollectionEvent;

            if (cached_collEvent.id != UIntPtr.Zero)
            {
                AutoResetEventHandle.Set(cached_collEvent);
            }

            AutoResetEventHandle.Set(this.AreHandle);
        }
Ejemplo n.º 2
0
 //| <include path='docs/doc[@for="AutoResetEvent.Set"]/*' />
 public void Set()
 {
     AutoResetEventHandle.Set(handle);
     GC.KeepAlive(this);
 }