Image Component Library (ICL)
|
This is used for concurrent writing and reading of ConvBuffers. More...
#include <PylonUtils.h>
Public Member Functions | |
ICLIO_API | ConcGrabberBuffer () |
Constructor creates and initializes resources. More... | |
ICLIO_API | ~ConcGrabberBuffer () |
Destructor frees allocated memory. More... | |
ICLIO_API ConvBuffers * | getNextReadBuffer () |
returns a pointer to the most recent actualized ConvBuffers. More... | |
ICLIO_API ConvBuffers * | getNextWriteBuffer () |
returns a pointer to the next write ConvBuffers. More... | |
ICLIO_API void | setReset () |
mark ConvBuffers to be reset on next write-access. More... | |
ICLIO_API bool | newAvailable () |
tells whether a new ConvBuffers is available More... | |
Private Attributes | |
ConvBuffers * | m_Buffers [3] |
current objects which alternately are read and written. More... | |
utils::Mutex | m_Mutex |
the Mutex is used for concurrent reading and writing. More... | |
int | m_Write |
The object currently written to. More... | |
int | m_Next |
The write object currently not written to. More... | |
int | m_Read |
The object currently read from. More... | |
bool | m_Avail |
tells whether an actualized object was written. More... | |
This is used for concurrent writing and reading of ConvBuffers.
This class holds three pointers to ConvBuffers of which one is the currently read and the other two are alternately written to.
ICLIO_API icl::io::pylon::ConcGrabberBuffer::ConcGrabberBuffer | ( | ) |
Constructor creates and initializes resources.
ICLIO_API icl::io::pylon::ConcGrabberBuffer::~ConcGrabberBuffer | ( | ) |
Destructor frees allocated memory.
ICLIO_API ConvBuffers* icl::io::pylon::ConcGrabberBuffer::getNextReadBuffer | ( | ) |
returns a pointer to the most recent actualized ConvBuffers.
ConvBuffers will then be marked and not overwritten till the next call to getNextImage()
ICLIO_API ConvBuffers* icl::io::pylon::ConcGrabberBuffer::getNextWriteBuffer | ( | ) |
returns a pointer to the next write ConvBuffers.
sets the returned ConvBuffers as current writeable and marks the old writeable as new.
ICLIO_API bool icl::io::pylon::ConcGrabberBuffer::newAvailable | ( | ) |
tells whether a new ConvBuffers is available
ICLIO_API void icl::io::pylon::ConcGrabberBuffer::setReset | ( | ) |
mark ConvBuffers to be reset on next write-access.
|
private |
tells whether an actualized object was written.
|
private |
current objects which alternately are read and written.
|
private |
the Mutex is used for concurrent reading and writing.
|
private |
The write object currently not written to.
|
private |
The object currently read from.
|
private |
The object currently written to.