Shaka Player Embedded
Public Member Functions | List of all members
shaka::Thread Class Referencefinal

#include <thread.h>

Public Member Functions

 Thread (const std::string &name, std::function< void()> callback)
 
 Thread (const Thread &)=delete
 
 Thread (Thread &&)=delete
 
 ~Thread ()
 
std::string name () const
 
bool joinable () const
 
std::thread::id get_id () const
 
void join ()
 

Detailed Description

Definition at line 24 of file thread.h.

Constructor & Destructor Documentation

§ Thread() [1/3]

shaka::Thread::Thread ( const std::string &  name,
std::function< void()>  callback 
)

Definition at line 45 of file thread.cc.

§ Thread() [2/3]

shaka::Thread::Thread ( const Thread )
delete

§ Thread() [3/3]

shaka::Thread::Thread ( Thread &&  )
delete

§ ~Thread()

shaka::Thread::~Thread ( )

Definition at line 54 of file thread.cc.

Member Function Documentation

§ get_id()

std::thread::id shaka::Thread::get_id ( ) const
inline
Returns
The unique thread ID of this thread.

Definition at line 42 of file thread.h.

§ join()

void shaka::Thread::join ( )
inline

Definition at line 56 of file thread.h.

§ joinable()

bool shaka::Thread::joinable ( ) const
inline
Returns
Whether you can call join() on the thread.

Definition at line 37 of file thread.h.

§ name()

std::string shaka::Thread::name ( ) const
inline
Returns
The name of the thread.

Definition at line 32 of file thread.h.


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