Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
roc::core::Thread Class Referenceabstract

Base class for thread objects. More...

#include <thread.h>

Inheritance diagram for roc::core::Thread:
Collaboration diagram for roc::core::Thread:

Public Member Functions

bool joinable () const
 Check if thread was started and can be joined. More...
 
bool start ()
 Start thread. More...
 
void join ()
 Join thread. More...
 

Protected Member Functions

virtual void run ()=0
 Method to be executed in thread. More...
 

Detailed Description

Base class for thread objects.

Definition at line 25 of file thread.h.

Member Function Documentation

void roc::core::Thread::join ( )

Join thread.

Remarks
Blocks until run() returns and thread terminates.
bool roc::core::Thread::joinable ( ) const

Check if thread was started and can be joined.

Returns
true if start() was called and join() was not called yet.
virtual void roc::core::Thread::run ( )
protectedpure virtual

Method to be executed in thread.

bool roc::core::Thread::start ( )

Start thread.

Remarks
Executes run() in new thread.

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