diff options
author | Sascha Volkenandt <sascha (at) akv-soft (dot) de> | 2007-01-13 18:37:21 +0000 |
---|---|---|
committer | Sascha Volkenandt <sascha (at) akv-soft (dot) de> | 2007-01-13 18:37:21 +0000 |
commit | 2072c668df9ad48586fd2750713da0be742dda6d (patch) | |
tree | b6a8af74320fe0b4af845fdc7ec0fca40d88f02d /tasks.h | |
parent | 872af377d5d207b0292c4deb3ebdff09c116ea3d (diff) | |
download | vdr-plugin-live-2072c668df9ad48586fd2750713da0be742dda6d.tar.gz vdr-plugin-live-2072c668df9ad48586fd2750713da0be742dda6d.tar.bz2 |
- added service to switch channels by channel-id
Diffstat (limited to 'tasks.h')
-rw-r--r-- | tasks.h | 31 |
1 files changed, 31 insertions, 0 deletions
@@ -0,0 +1,31 @@ +#ifndef VDR_LIVE_TASKS_H +#define VDR_LIVE_TASKS_H + +#include <vdr/thread.h> + +namespace vdrlive { + +class TaskManager: public cMutex +{ + friend TaskManager& LiveTaskManager(); + +public: + bool SwitchChannel( int number ); + + // may only be called from Plugin::MainThreadHook + void DoScheduledWork(); + +private: + TaskManager(); + TaskManager( TaskManager const& ); + + int m_switchChannel; + bool m_switchResult; + cCondVar m_scheduleWait; +}; + +TaskManager& LiveTaskManager(); + +} // namespace vdrlive + +#endif // VDR_LIVE_TASKS_H |