diff options
author | Sascha Volkenandt <sascha (at) akv-soft (dot) de> | 2007-01-04 15:02:00 +0000 |
---|---|---|
committer | Sascha Volkenandt <sascha (at) akv-soft (dot) de> | 2007-01-04 15:02:00 +0000 |
commit | 64eaee28c243214e654c60b06a27212e8dcb5c02 (patch) | |
tree | 21b264c07166720513b65638feeb8fc3344530ec /tools.h | |
parent | 4bfb50c7a53074fa7e4673ffdd16502c1bf72fcb (diff) | |
download | vdr-plugin-live-64eaee28c243214e654c60b06a27212e8dcb5c02.tar.gz vdr-plugin-live-64eaee28c243214e654c60b06a27212e8dcb5c02.tar.bz2 |
- optimized interface to access plugin objects from website
- moved website code to pagelib subdirectory
- introduced TimerManager that will help working on timers from a background thread
Diffstat (limited to 'tools.h')
-rw-r--r-- | tools.h | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/tools.h b/tools.h deleted file mode 100644 index 18f968d..0000000 --- a/tools.h +++ /dev/null @@ -1,28 +0,0 @@ -#ifndef VDR_LIVE_TOOLS_H -#define VDR_LIVE_TOOLS_H - -#include <ctime> -#include <string> -#include <vdr/thread.h> - -namespace vdrlive { - -std::string FormatDateTime( char const* format, time_t time ); - -class ReadLock -{ -public: - ReadLock( cRwLock& lock, int timeout = 100 ): m_lock( lock ), m_locked( false ) { if ( m_lock.Lock( false, timeout ) ) m_locked = true; } - ~ReadLock() { if ( m_locked ) m_lock.Unlock(); } - - operator bool() { return m_locked; } - bool operator!() { return !m_locked; } - -private: - cRwLock& m_lock; - bool m_locked; -}; - -} // namespace vdrlive - -#endif // VDR_LIVE_TOOLS_H |