vdr 2.7.6
|
#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 cCamSlot * | Get (int Index) const |
const cCamSlot * | First (void) const |
const cCamSlot * | Last (void) const |
const cCamSlot * | Prev (const cCamSlot *Object) const |
const cCamSlot * | Next (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 cListObject * | Get (int Index) const |
cListObject * | Get (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 | |
cListObject * | objects |
cListObject * | lastObject |
int | count |
cStateLock | stateLock |
const char * | needsLocking |
bool | useGarbageCollector |
int cCamSlots::NumReadyMasterSlots | ( | void | ) |
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().