|
MythTV
0.26-pre
|
This class is essentially a workaround for a Qt 4.5.2 bug where it will get stuck in the Qt event loop for up to 999 nanoseconds per timer firing. More...
#include <mythsignalingtimer.h>
Signals | |
| void | timeout (void) |
Public Member Functions | |
| MythSignalingTimer (QObject *parent, const char *slot) | |
| ~MythSignalingTimer () | |
| virtual void | stop (void) |
| virtual void | start (int msec) |
| virtual bool | blockSignals (bool block) |
Private Member Functions | |
| virtual void | run (void) |
| Runs the Qt event loop unless we have a QRunnable, in which case we run the runnable run instead. | |
Private Attributes | |
| QMutex | startStopLock |
| volatile bool | dorun |
| volatile bool | running |
| volatile uint64_t | microsec |
This class is essentially a workaround for a Qt 4.5.2 bug where it will get stuck in the Qt event loop for up to 999 nanoseconds per timer firing.
This lost millisecond is not a huge issue for infrequent timers, but causes 7% lost CPU in the MythUI animate() handling.
Definition at line 19 of file mythsignalingtimer.h.
| MythSignalingTimer::MythSignalingTimer | ( | QObject * | parent, |
| const char * | slot | ||
| ) |
Definition at line 23 of file mythsignalingtimer.cpp.
Definition at line 32 of file mythsignalingtimer.cpp.
| void MythSignalingTimer::stop | ( | void | ) | [virtual] |
Definition at line 55 of file mythsignalingtimer.cpp.
Referenced by MythMainWindow::Init(), MythMainWindow::SetDrawEnabled(), MythMainWindow::~MythMainWindow(), and ~MythSignalingTimer().
| void MythSignalingTimer::start | ( | int | msec | ) | [virtual] |
Definition at line 38 of file mythsignalingtimer.cpp.
Referenced by MythMainWindow::MythMainWindow(), MythMainWindow::ReinitDone(), and MythMainWindow::SetDrawEnabled().
| virtual bool MythSignalingTimer::blockSignals | ( | bool | block | ) | [inline, virtual] |
Definition at line 30 of file mythsignalingtimer.h.
Referenced by MythMainWindow::animate().
| void MythSignalingTimer::timeout | ( | void | ) | [signal] |
Referenced by MythSignalingTimer(), and run().
| void MythSignalingTimer::run | ( | void | ) | [private, virtual] |
Runs the Qt event loop unless we have a QRunnable, in which case we run the runnable run instead.
Reimplemented from MThread.
Definition at line 71 of file mythsignalingtimer.cpp.
QMutex MythSignalingTimer::startStopLock [private] |
Definition at line 39 of file mythsignalingtimer.h.
volatile bool MythSignalingTimer::dorun [private] |
Definition at line 40 of file mythsignalingtimer.h.
volatile bool MythSignalingTimer::running [private] |
Definition at line 41 of file mythsignalingtimer.h.
volatile uint64_t MythSignalingTimer::microsec [private] |
Definition at line 42 of file mythsignalingtimer.h.
1.7.6.1