Beispiel #1
0
 /// <summary>
 /// Acquires a permit from this semaphore, blocking until one is
 /// available.
 ///
 /// <para>Acquires a permit, if one is available and returns immediately,
 /// reducing the number of available permits by one.
 ///
 /// </para>
 /// <para>If no permit is available then the current thread becomes
 /// disabled for thread scheduling purposes and lies dormant until
 /// some other thread invokes the <seealso cref="#release"/> method for this
 /// semaphore and the current thread is next to be assigned a permit.
 ///
 /// </para>
 /// <para>If the current thread is <seealso cref="Thread#interrupt interrupted"/>
 /// while waiting for a permit then it will continue to wait, but the
 /// time at which the thread is assigned a permit may change compared to
 /// the time it would have received the permit had no interruption
 /// occurred.  When the thread does return from this method its interrupt
 /// status will be set.
 /// </para>
 /// </summary>
 public virtual void AcquireUninterruptibly()
 {
     Sync.AcquireShared(1);
 }