vdr 2.7.6
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
const cCamSlotFirst (void) const
const cCamSlotLast (void) const
const cCamSlotPrev (const cCamSlot *Object) const
const cCamSlotNext (const cCamSlot *Object) const
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 2840 of file ci.c.

References CamSlots, and msReady.

◆ 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 2850 of file ci.c.

References CamSlots, dsyslog, cCondWait::SleepMs(), and cString::sprintf().


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