WaitResult

Use these constants to determine the value of the waitRes parameter of the following methods:

Semaphore.AcquireSemaphore

Semaphore.AcquireSemaphoreWithAutoReleaser

Mutex.LockMutex

Mutex.LockMutexGroup

Rendezvous.Rendezvous

Queue.Enqueue

Queue.Dequeue

Queue.DequeueMultiple

Notification.Wait

Notification.WaitMultiple

Batch.EnterSynchronizedSection

Batch.ExitSynchronizedSection

Batch.ExitAllSynchronizedSectionsInCurrentSequence

  • WaitResult_DeadlockDetected –(Value: 3) A deadlock condition was detected.
    Note This enumeration element applies only to the Mutex.LockMutex method.
  • WaitResult_Success –(Value: 0) The operation was successful.
  • WaitResult_TerminateOrAbortOccurred –(Value: 2) The execution was terminated or aborted.
  • WaitResult_TimeoutOccurred –(Value: 1) The specified timeout occurred before the operation completed.