This class uses AbstractFileStream(s)
More...
#include <filestream.h>
|
|
virtual void | preRun () |
| | Called before entering the main execution loop, but after creating the thread.
|
| |
|
virtual void | postRun () |
| | Called after the main execution loop exits, but before joining the thread.
|
| |
| virtual void | run () |
| | Main execution loop is defined here. More...
|
| |
|
void | mainRun () |
| | Does the preRun, run, postRun sequence.
|
| |
|
void | closeThread () |
| | Sends exit signal to the thread, calls join. This method blocks until thread has exited. Set Thread::has_thread to false.
|
| |
|
|
FrameFifo | infifo |
| | Incoming frames are read from here.
|
| |
|
FifoFrameFilter | infilter |
| | Write incoming frames here.
|
| |
|
std::string | name |
| | Name of the thread.
|
| |
|
bool | has_thread |
| | true if thread has been started
|
| |
|
bool | stop_requested |
| |
|
bool | thread_joined |
| |
|
std::mutex | start_mutex |
| | Mutex protecting start_condition.
|
| |
|
std::condition_variable | start_condition |
| | Notified when the thread has been started.
|
| |
|
std::mutex | mutex |
| | Mutex protecting the condition variable and signal queue.
|
| |
|
std::condition_variable | condition |
| | Condition variable for the signal queue (triggered when all signals processed). Not necessarily used by all subclasses.
|
| |
|
std::mutex | loop_mutex |
| | Protects thread's main execution loop (if necessary)
|
| |
|
std::deque< SignalContext > | signal_fifo |
| | Signal queue (fifo). Redefine in child classes.
|
| |
|
bool | loop |
| | Use this boolean to control if the main loop in Thread:run should exit.
|
| |
|
int | core_id |
| |
|
pthread_attr_t | thread_attr |
| | Thread attributes, pthread_* way.
|
| |
|
cpu_set_t | cpuset |
| |
|
pthread_t | internal_thread |
| |
|
|
static void * | mainRun_ (void *p) |
| |
This class uses AbstractFileStream(s)
A minimal example / model class
See also Presention timing and playing.
◆ AbstractFileThread()
Default constructor.
- Parameters
-
◆ run()
| void AbstractFileThread::run |
( |
| ) |
|
|
protectedvirtual |
The documentation for this class was generated from the following files: