Image Component Library (ICL)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Private Attributes
icl::io::pylon::ConcGrabberBuffer Class Reference

This is used for concurrent writing and reading of ConvBuffers. More...

#include <PylonUtils.h>

List of all members.

Public Member Functions

ICLIO_API ConcGrabberBuffer ()
 Constructor creates and initializes resources.
ICLIO_API ~ConcGrabberBuffer ()
 Destructor frees allocated memory.
ICLIO_API ConvBuffersgetNextReadBuffer ()
 returns a pointer to the most recent actualized ConvBuffers.
ICLIO_API ConvBuffersgetNextWriteBuffer ()
 returns a pointer to the next write ConvBuffers.
ICLIO_API void setReset ()
 mark ConvBuffers to be reset on next write-access.
ICLIO_API bool newAvailable ()
 tells whether a new ConvBuffers is available

Private Attributes

ConvBuffersm_Buffers [3]
 current objects which alternately are read and written.
utils::Mutex m_Mutex
 the Mutex is used for concurrent reading and writing.
int m_Write
 The object currently written to.
int m_Next
 The write object currently not written to.
int m_Read
 The object currently read from.
bool m_Avail
 tells whether an actualized object was written.

Detailed Description

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.


Constructor & Destructor Documentation

Constructor creates and initializes resources.

Destructor frees allocated memory.


Member Function Documentation

returns a pointer to the most recent actualized ConvBuffers.

ConvBuffers will then be marked and not overwritten till the next call to getNextImage()

returns a pointer to the next write ConvBuffers.

sets the returned ConvBuffers as current writeable and marks the old writeable as new.

tells whether a new ConvBuffers is available

mark ConvBuffers to be reset on next write-access.


Member Data Documentation

tells whether an actualized object was written.

current objects which alternately are read and written.

the Mutex is used for concurrent reading and writing.

The write object currently not written to.

The object currently read from.

The object currently written to.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines