Sage Modeling and Simulation Library

GlobalRandomServer..::..SetBufferSize Method

Sets the size of the buffer for each of the double-buffer sides. 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 SetBufferSize(
	int bufferSize
)

Parameters

bufferSize
Type: Int32
Size of the buffer.

Exceptions


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