sipxmedialib  Version 3.3
Static Public Member Functions | Static Protected Attributes | Private Attributes | List of all members
MpAlsaContainer Class Reference

#include <MpAlsaContainer.h>

Inheritance diagram for MpAlsaContainer:
Inheritance graph
[legend]
Collaboration diagram for MpAlsaContainer:
Collaboration graph
[legend]

Public Member Functions

Creators
 MpAlsaContainer ()
 
 ~MpAlsaContainer ()
 
Manipulators
MpAlsagetALSADeviceWrapper (const UtlString &ossdev)
 Create new wrapper for name haven't founded in container. More...
 
void excludeFromContainer (MpAlsa *pDev)
 Excluding wrapper from container. More...
 

Static Public Member Functions

static MpAlsaContainergetContainer ()
 Creating wrapper and return if it wasn't create yet. More...
 
static void releaseContainer (MpAlsaContainer *pCont)
 Releasing wrapper if it no longer needed (no references). More...
 
static UtlBoolean excludeWrapperFromContainer (MpAlsa *pDev)
 Excluding wrapper from container (static version). More...
 

Static Protected Attributes

static MpAlsaContainermpCont = NULL
 Pointer to allocated class. More...
 
static int refCount = 0
 Number of all MpALSADeviceWrapperContainer members. More...
 

Private Attributes

OsMutex mMutex
 Internal synchronization mutex. More...
 

Constructor & Destructor Documentation

Member Function Documentation

MpAlsa * getALSADeviceWrapper ( const UtlString &  ossdev)

Create new wrapper for name haven't founded in container.

void excludeFromContainer ( MpAlsa pDev)

Excluding wrapper from container.

MpAlsaContainer * getContainer ( )
static

Creating wrapper and return if it wasn't create yet.

void releaseContainer ( MpAlsaContainer pCont)
static

Releasing wrapper if it no longer needed (no references).

UtlBoolean excludeWrapperFromContainer ( MpAlsa pDev)
static

Excluding wrapper from container (static version).

Member Data Documentation

MpAlsaContainer * mpCont = NULL
staticprotected

Pointer to allocated class.

int refCount = 0
staticprotected

Number of all MpALSADeviceWrapperContainer members.

OsMutex mMutex
private

Internal synchronization mutex.