Sage Modeling and Simulation Library

GlobalRandomServer..::..SetGlobalRandomChannelBufferSize Method

Sets the size of the buffer for each of the double-buffer sides of the GlobalRandomChannel. Generation is done into one buffer on a worker thread while service is taken from the other.

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

Syntax


public static void SetGlobalRandomChannelBufferSize(
	int bufferSize
)

Parameters

bufferSize
Type: Int32
Size of the buffer.

Exceptions


ExceptionCondition
ApplicationExceptionCalls to GlobalRandomServer.SetGlobalRandomChannelBufferSize(int bufferSize) must be performed before any call to GlobalRandomServer.SetGlobalRandomChannelBufferSize.