Template Numerical Library: TNL::Backend::StreamPool Class Reference

Template Numerical Library version\ main:16b9213d5

Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
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.
StreamPool & | operator= (StreamPool const &copy)=delete

## Static Public Member Functions
static StreamPool & | getInstance ()

## 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

  id | Numeric 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

  flags | Custom flags for stream creation. See Stream::create for details.
  priority | Priority of the stream. See Stream::create for details.

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

- src/TNL/Backend/StreamPool.h