Scripts/src/teventcamera.cpp
int ThermalEventCamera::wrapperRead()
{
	// get lock on std cout
	// to be used when exception handling is set
	std::unique_lock<std::mutex> lck(this->print_mutex);
	lck.unlock();
	while(!this->stopFlag)
	{
		this->read();
	}
	lck.lock();
	return 0;
}
// threaded read of I2C buff
// repeated calls of read so long as stopThreadis false
threaded read of I2C buff
repeated calls of read so long as stopThreadis false
threaded read of I2C buff repeated calls of read so long as stopThreadis false
int ThermalEventCamera::wrapperRead()
{
	std::unique_lock<std::mutex> lck(this->print_mutex);
	lck.unlock();
	while(!this->stopFlag)
	{
		this->read();
	}
	lck.lock();
	return 0;
}
int ThermalEventCamera :: wrapperRead ( ) { std :: unique_lock < std :: mutex > lck ( this -> print_mutex ) ; lck . unlock ( ) ; while ( ! this -> stopFlag ) { this -> read ( ) ; } lck . lock ( ) ; return 0 ; }
threaded read of I2C buff
repeated calls of read so long as stopThreadis false
threaded read of I2C buff repeated calls of read so long as stopThreadis false
// get lock on std cout // to be used when exception handling is set