Loading...
Searching...
No Matches
Process::LatestValue< T > Class Template Reference
Detailed Description
template<typename T>
class Process::LatestValue< T >
class Process::LatestValue< T >
The latest frame a process published, for any number of views.
ossia::triple_buffer gives a frame to the first reader only; this keeps it on the GUI side for the tick in which it was taken, so that every view refreshed in that tick gets it. The writing side is the triple buffer's.
Public Member Functions | |
| LatestValue (const T &init) | |
| LatestValue (const LatestValue &)=delete | |
| LatestValue & | operator= (const LatestValue &)=delete |
| template<typename U > | |
| void | produce (U &&v) |
| Writer. | |
| bool | consume (T &out) |
Member Function Documentation
◆ consume()
template<typename T >
|
inline |
Reader: true and the newest frame in out when one came since the previous tick; in one tick, every caller gets the same answer.
The documentation for this class was generated from the following file: