UAOOI.ProcessObserver.RealTime.Processes Namespace
UAOOI.ProcessObserver.RealTime.Utils.Collections.Generic Namespace
UAOOI.ProcessObserver.RealTime

Condition..::..Wait Method (Object, TimeSpan)

Releases the lock on a monitor and blocks the current thread until it receives Notification / Signal or a specified amount of time elapses.

Namespace:  UAOOI.ProcessObserver.RealTime.Processes
Assembly:  RealTime (in RealTime.dll)

Syntax


public bool Wait(
	Object callingMonitor,
	TimeSpan TimeOut
)
Public Function Wait ( _
	callingMonitor As Object, _
	TimeOut As TimeSpan _
) As Boolean
public:
bool^ Wait(
	Object^ callingMonitor, 
	TimeSpan^ TimeOut
)

Parameters

callingMonitor
Type: Object
The monitor which to releases the lock on.
TimeOut
Type: TimeSpan
The number of milliseconds to wait before this method returns.

Return Value

true if the lock was reacquired before the specified time elapsed; otherwise, false.