Sage Modeling and Simulation Library

DetachableEventSynchronizer..::..GetSynchChannel Method

Acquires a Synchronization Channel. A synch channel is used once by one object that wishes to be synchronized. Once all channels that have been acquired from a synchronizer have had their 'Synchronize' methods called, all channels' users are allowed to proceed. Note that the constructor need not be called from a DetachableEvent thread - but Synchronize(...) will need to be.

Namespace:  Highpoint.Sage.SimCore
Assembly:  Sage4 (in Sage4.dll)

Syntax


public ISynchChannel GetSynchChannel(
	IComparable sequencer
)

Parameters

sequencer
Type: IComparable
A sequence indicator that determines which synch channels' owners are instructed to proceed first.

Return Value

A Synch Channel with the assigned priority.