Class NoMessagePumpSyncContext
- Namespace
- Microsoft.VisualStudio.Threading
- Assembly
- Microsoft.VisualStudio.Threading.dll
A SynchronizationContext whose synchronously blocking Wait method does not allow any reentrancy via the message pump.
public class NoMessagePumpSyncContext : SynchronizationContext
- Inheritance
-
NoMessagePumpSyncContext
- Inherited Members
- Extension Methods
Constructors
NoMessagePumpSyncContext()
Initializes a new instance of the NoMessagePumpSyncContext class.
public NoMessagePumpSyncContext()
Properties
Default
Gets a shared instance of this class.
public static SynchronizationContext Default { get; }
Property Value
Methods
Wait(IntPtr[], bool, int)
Synchronously blocks without a message pump.
public override int Wait(IntPtr[] waitHandles, bool waitAll, int millisecondsTimeout)
Parameters
waitHandles
IntPtr[]An array of type IntPtr that contains the native operating system handles.
waitAll
booltrue to wait for all handles; false to wait for any handle.
millisecondsTimeout
intThe number of milliseconds to wait, or Infinite (-1) to wait indefinitely.
Returns
- int
The array index of the object that satisfied the wait.