BitmapToolkit Scol plugin
Public Member Functions | List of all members
raspicam::_private::ThreadCondition Class Reference

This class implements a condition to stop a thread until the condition is reached. More...

#include <threadcondition.h>

Public Member Functions

 ThreadCondition () throw ( raspicam::Exception )
 
void Wait (std::unique_lock< std::mutex > &lck) throw ( raspicam::Exception )
 
void BroadCast () throw ( raspicam::Exception )
 

Detailed Description

This class implements a condition to stop a thread until the condition is reached.

Definition at line 54 of file threadcondition.h.

Constructor & Destructor Documentation

◆ ThreadCondition()

raspicam::_private::ThreadCondition::ThreadCondition ( )
throw (raspicam::Exception
)

Definition at line 48 of file threadcondition.cpp.

Member Function Documentation

◆ BroadCast()

void raspicam::_private::ThreadCondition::BroadCast ( )
throw (raspicam::Exception
)

Wake up all threads waiting for this condition

Definition at line 65 of file threadcondition.cpp.

◆ Wait()

void raspicam::_private::ThreadCondition::Wait ( std::unique_lock< std::mutex > &  lck)
throw (raspicam::Exception
)

The thread that call this function waits untils the condition is activated

Definition at line 56 of file threadcondition.cpp.


The documentation for this class was generated from the following files: