![]() |
PosturePerfection
|
Result when calling Buffer::pop()
More...
#include <pipeline.h>
Data Fields | |
| T | value |
| Actual popped result. More... | |
| bool | valid |
| Indicates validity of the result. More... | |
Result when calling Buffer::pop()
The structure has a field to indicate the validity of the result. It is possible for the buffer to return a result when the owning pipeline is shut down. In this situation the result could be invalid as the call to pop() may be blocking until data is available. In this situation a valid flag of false means the value field should not be used. A valid flag of true means the value is useable from the buffer's perspective.
| T | Type of elements on the buffer |
| bool Buffer::PopResult< T >::valid |
Indicates validity of the result.
| T Buffer::PopResult< T >::value |
Actual popped result.