Template Numerical Library version\ main:4e58ea6
Loading...
Searching...
No Matches
TNL::Backend::StreamPool Class Reference

Public Member Functions

 StreamPool (StreamPool const &copy)=delete
 
const stream_t & getStream (int id, unsigned int flags=StreamDefault, int priority=0)
 Get a stream from the pool.
 
StreamPooloperator= (StreamPool const &copy)=delete
 

Static Public Member Functions

static StreamPoolgetInstance ()
 

Member Function Documentation

◆ getStream()

const stream_t & TNL::Backend::StreamPool::getStream ( int id,
unsigned int flags = StreamDefault,
int priority = 0 )
inline

Get a stream from the pool.

Parameters
idNumeric ID of the requested stream.

If the stream with given ID was not created yet, it is created by calling Stream::create with the following parameters:

Parameters
flagsCustom flags for stream creation. See Stream::create for details.
priorityPriority of the stream. See Stream::create for details.

The documentation for this class was generated from the following file: