leave update plugin with ok button after the update process (we entered it with ok...
[enigma2.git] / lib / base / ebase.h
index 54b4063bfe147792d67f02cfa10fac55cffad1b1..d4709418e0dd6583343bb50e583c92783c599952 100644 (file)
@@ -22,6 +22,11 @@ static inline bool operator<( const timeval &t1, const timeval &t2 )
        return t1.tv_sec < t2.tv_sec || (t1.tv_sec == t2.tv_sec && t1.tv_usec < t2.tv_usec);
 }
 
+static inline bool operator<=( const timeval &t1, const timeval &t2 )
+{
+       return t1.tv_sec < t2.tv_sec || (t1.tv_sec == t2.tv_sec && t1.tv_usec <= t2.tv_usec);
+}
+
 static inline timeval &operator+=( timeval &t1, const timeval &t2 )
 {
        t1.tv_sec += t2.tv_sec;
@@ -176,6 +181,8 @@ class eMainloop
        void processOneEvent();
        int retval;
        pthread_mutex_t recalcLock;
+       
+       int m_now_is_invalid;
 public:
        static void addTimeOffset(int offset);
        void addSocketNotifier(eSocketNotifier *sn);
@@ -187,6 +194,7 @@ public:
        eMainloop()
                :app_quit_now(0),loop_level(0),retval(0)
        {
+               m_now_is_invalid = 0;
                existing_loops.push_back(this);
                pthread_mutex_init(&recalcLock, 0);
        }