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

Port..::..WaitMsg Method

Receive message from 'port'. If there is no message in the 'port', the calling thread will be blocked until it receives a message or a specified amount of time elapses.

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

Syntax


public bool WaitMsg(
	Object callingMonitor,
	out IEnvelope mess,
	int timeOut
)
Public Function WaitMsg ( _
	callingMonitor As Object, _
	<OutAttribute> ByRef mess As IEnvelope, _
	timeOut As Integer _
) As Boolean
public:
bool^ WaitMsg(
	Object^ callingMonitor, 
	[OutAttribute] IEnvelope^% mess, 
	int^ timeOut
)

Parameters

callingMonitor
Type: Object
TODO: add some description
mess
Type: UAOOI.ProcessObserver.RealTime.Processes..::..IEnvelope%
UMessage removed from the beginning of the port Queue
timeOut
Type: Int32
The number of milliseconds to wait before this method returns. 0 means wait forever.

Return Value

true if the message was received before the specified time elapsed; otherwise, false