ardour
Public Member Functions | Private Types | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
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 75 of file selectable.h.

Member Typedef Documentation

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

Definition at line 80 of file selectable.h.

Constructor & Destructor Documentation

Select::Selector::Selector ( )

Member Function Documentation

void Select::Selector::add ( int  condition,
Selectable s 
)
void Select::Selector::multithreaded ( bool  yn)
inline

Definition at line 89 of file selectable.h.

int Select::Selector::post_select ( fd_set *  ,
fd_set *  ,
fd_set *   
)
private
void Select::Selector::remove ( Selectable )
int Select::Selector::select ( unsigned long  usecs)

Member Data Documentation

int Select::Selector::_max_fd
private

Definition at line 78 of file selectable.h.

pthread_mutex_t Select::Selector::list_lock
private

Definition at line 82 of file selectable.h.

Selectables Select::Selector::selectables
private

Definition at line 81 of file selectable.h.

bool Select::Selector::use_list_lock
staticprivate

Definition at line 84 of file selectable.h.


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