Ardour  9.0-pre0-350-gf17a656217
Select::Selector Class Reference

#include <selectable.h>

Public Member Functions

 Selector ()
 
void multithreaded (bool yn)
 
void add (int condition, Selectable *s)
 
void remove (Selectable *)
 
int select (unsigned long usecs)
 

Private Types

typedef std::list< Selectable * > Selectables
 

Private Member Functions

int post_select (fd_set *, fd_set *, fd_set *)
 

Private Attributes

int _max_fd
 
Selectables selectables
 
pthread_mutex_t list_lock
 

Static Private Attributes

static bool use_list_lock
 

Detailed Description

Definition at line 73 of file libs/pbd/pbd/selectable.h.

Member Typedef Documentation

◆ Selectables

typedef std::list<Selectable *> Select::Selector::Selectables
private

Definition at line 78 of file libs/pbd/pbd/selectable.h.

Constructor & Destructor Documentation

◆ Selector()

Select::Selector::Selector ( )

Member Function Documentation

◆ add()

void Select::Selector::add ( int  condition,
Selectable s 
)

◆ multithreaded()

void Select::Selector::multithreaded ( bool  yn)
inline

Definition at line 87 of file libs/pbd/pbd/selectable.h.

◆ post_select()

int Select::Selector::post_select ( fd_set *  ,
fd_set *  ,
fd_set *   
)
private

◆ remove()

void Select::Selector::remove ( Selectable )

◆ select()

int Select::Selector::select ( unsigned long  usecs)

Member Data Documentation

◆ _max_fd

int Select::Selector::_max_fd
private

Definition at line 76 of file libs/pbd/pbd/selectable.h.

◆ list_lock

pthread_mutex_t Select::Selector::list_lock
private

Definition at line 80 of file libs/pbd/pbd/selectable.h.

◆ selectables

Selectables Select::Selector::selectables
private

Definition at line 79 of file libs/pbd/pbd/selectable.h.

◆ use_list_lock

bool Select::Selector::use_list_lock
staticprivate

Definition at line 82 of file libs/pbd/pbd/selectable.h.


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