vdr  2.4.7
Public Member Functions | List of all members
cCamSlots Class Reference

#include <ci.h>

Public Member Functions

int NumReadyMasterSlots (void)
 
bool WaitForAllCamSlotsReady (int Timeout=0)
 
- Public Member Functions inherited from cList< cCamSlot >
 cList (const char *NeedsLocking=NULL)
 
const cCamSlotGet (int Index) const
 
cCamSlotGet (int Index)
 
const cCamSlotFirst (void) const
 
cCamSlotFirst (void)
 
const cCamSlotLast (void) const
 
cCamSlotLast (void)
 
const cCamSlotPrev (const cCamSlot *Object) const
 
cCamSlotPrev (const cCamSlot *Object)
 
const cCamSlotNext (const cCamSlot *Object) const
 
cCamSlotNext (const cCamSlot *Object)
 
- Public Member Functions inherited from cListBase
virtual ~cListBase ()
 
bool Lock (cStateKey &StateKey, bool Write=false, int TimeoutMs=0) const
 
void SetSyncStateKey (cStateKey &StateKey)
 
void SetUseGarbageCollector (void)
 
void SetExplicitModify (void)
 
void SetModified (void)
 
void Add (cListObject *Object, cListObject *After=NULL)
 
void Ins (cListObject *Object, cListObject *Before=NULL)
 
void Del (cListObject *Object, bool DeleteObject=true)
 
virtual void Move (int From, int To)
 
void Move (cListObject *From, cListObject *To)
 
virtual void Clear (void)
 
bool Contains (const cListObject *Object) const
 
const cListObjectGet (int Index) const
 
cListObjectGet (int Index)
 
int Count (void) const
 
void Sort (void)
 

Additional Inherited Members

- Protected Member Functions inherited from cListBase
 cListBase (const char *NeedsLocking=NULL)
 
- Protected Attributes inherited from cListBase
cListObjectobjects
 
cListObjectlastObject
 
int count
 
cStateLock stateLock
 
const char * needsLocking
 
bool useGarbageCollector
 

Detailed Description

Definition at line 493 of file ci.h.

Member Function Documentation

◆ NumReadyMasterSlots()

int cCamSlots::NumReadyMasterSlots ( void  )

Returns the number of master CAM slots in the system that are ready to decrypt.

Definition at line 2836 of file ci.c.

References CamSlots, cList< T >::First(), msReady, and cList< T >::Next().

Referenced by cDevice::AttachReceiver().

◆ WaitForAllCamSlotsReady()

bool cCamSlots::WaitForAllCamSlotsReady ( int  Timeout = 0)

Waits until all CAM slots have become ready, or the given Timeout (seconds) has expired.

While waiting, the Ready() function of each CAM slot is called in turn, until they all return true. Returns true if all CAM slots have become ready within the given timeout.

Definition at line 2846 of file ci.c.

References CamSlots, dsyslog, cList< T >::First(), cList< T >::Next(), cCondWait::SleepMs(), and cString::sprintf().

Referenced by main().


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