Ardour  9.0-pre0-380-gbbdb6b0e63
PBD::Thread Class Reference

#include <pthread_utils.h>

Public Member Functions

void join ()
 
bool caller_is_self () const
 

Static Public Member Functions

static Threadcreate (std::function< void()> const &, std::string const &name)
 
static Threadself ()
 

Private Member Functions

 Thread ()
 
 Thread (std::function< void()> const &, std::string const &name="")
 
 Thread (Thread const &)
 

Static Private Member Functions

static void * _run (void *)
 

Private Attributes

pthread_t _t
 
std::string _name
 
std::function< void()> _slot
 
bool _joinable
 

Detailed Description

Definition at line 104 of file pthread_utils.h.

Constructor & Destructor Documentation

◆ Thread() [1/3]

PBD::Thread::Thread ( )
private

◆ Thread() [2/3]

PBD::Thread::Thread ( std::function< void()> const &  ,
std::string const &  name = "" 
)
private

◆ Thread() [3/3]

PBD::Thread::Thread ( Thread const &  )
private

Member Function Documentation

◆ _run()

static void* PBD::Thread::_run ( void *  )
staticprivate

◆ caller_is_self()

bool PBD::Thread::caller_is_self ( ) const

◆ create()

static Thread* PBD::Thread::create ( std::function< void()> const &  ,
std::string const &  name 
)
static

◆ join()

void PBD::Thread::join ( )

◆ self()

static Thread* PBD::Thread::self ( )
static

Member Data Documentation

◆ _joinable

bool PBD::Thread::_joinable
private

Definition at line 121 of file pthread_utils.h.

◆ _name

std::string PBD::Thread::_name
private

Definition at line 119 of file pthread_utils.h.

◆ _slot

std::function<void ()> PBD::Thread::_slot
private

Definition at line 120 of file pthread_utils.h.

◆ _t

pthread_t PBD::Thread::_t
private

Definition at line 118 of file pthread_utils.h.


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