NoMessagePumpSyncContext::Wait Method (array<IntPtr>^, Boolean, Int32)

 

Synchronously blocks without a message pump.

Namespace:   Microsoft.VisualStudio.Threading
Assembly:  Microsoft.VisualStudio.Threading (in Microsoft.VisualStudio.Threading.dll)

public:
virtual int Wait(
	array<IntPtr>^ waitHandles,
	bool waitAll,
	int millisecondsTimeout
) override

Parameters

waitHandles
Type: array<System::IntPtr>^

An array of type IntPtr that contains the native operating system handles.

waitAll
Type: System::Boolean

true to wait for all handles; false to wait for any handle.

millisecondsTimeout
Type: System::Int32

The number of milliseconds to wait, or Timeout.Infinite (-1) to wait indefinitely.

Return Value

Type: System::Int32

The array index of the object that satisfied the wait.

Return to top
Show: