#include "QtCore/qabstracteventdispatcher.h"
#include "QtCore/qlist.h"
#include "private/qabstracteventdispatcher_p.h"
#include <sys/types.h>
#include <sys/time.h>
Include dependency graph for qeventdispatcher_unix_p.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Classes | |
| struct | QTimerInfo |
| class | QTimerInfoList |
| struct | QSockNot |
| class | QSockNotType |
| class | QEventDispatcherUNIX |
| class | QEventDispatcherUNIXPrivate |
Functions | |
| void | getTime (timeval &t) |
| bool | operator< (const timeval &t1, const timeval &t2) |
| bool | operator== (const timeval &t1, const timeval &t2) |
| timeval & | operator+= (timeval &t1, const timeval &t2) |
| timeval | operator+ (const timeval &t1, const timeval &t2) |
| timeval | operator- (const timeval &t1, const timeval &t2) |
| void getTime | ( | timeval & | t | ) | [inline] |
Definition at line 46 of file qeventdispatcher_unix_p.h.
References l.
Referenced by QEventDispatcherUNIX::activateTimers(), QTimerInfoList::QTimerInfoList(), QEventDispatcherUNIX::registerTimer(), QEventDispatcherGlib::registerTimer(), QEventDispatcherUNIX::select(), timerSourceCheck(), timerSourceDispatch(), and QTimerInfoList::timerWait().
00047 { 00048 gettimeofday(&t, 0); 00049 // NTP-related fix 00050 while (t.tv_usec >= 1000000l) { 00051 t.tv_usec -= 1000000l; 00052 ++t.tv_sec; 00053 } 00054 while (t.tv_usec < 0l) { 00055 if (t.tv_sec > 0l) { 00056 t.tv_usec += 1000000l; 00057 --t.tv_sec; 00058 } else { 00059 t.tv_usec = 0l; 00060 break; 00061 } 00062 } 00063 }
| timeval operator+ | ( | const timeval & | t1, | |
| const timeval & | t2 | |||
| ) | [inline] |
Definition at line 79 of file qeventdispatcher_unix_p.h.
References l.
Referenced by QMap< Key, T >::const_iterator::operator-(), and QMap< Key, T >::iterator::operator-().
00080 { 00081 timeval tmp; 00082 tmp.tv_sec = t1.tv_sec + t2.tv_sec; 00083 if ((tmp.tv_usec = t1.tv_usec + t2.tv_usec) >= 1000000l) { 00084 ++tmp.tv_sec; 00085 tmp.tv_usec -= 1000000l; 00086 } 00087 return tmp; 00088 }
| timeval& operator+= | ( | timeval & | t1, | |
| const timeval & | t2 | |||
| ) | [inline] |
Definition at line 70 of file qeventdispatcher_unix_p.h.
References l.
00071 { 00072 t1.tv_sec += t2.tv_sec; 00073 if ((t1.tv_usec += t2.tv_usec) >= 1000000l) { 00074 ++t1.tv_sec; 00075 t1.tv_usec -= 1000000l; 00076 } 00077 return t1; 00078 }
| timeval operator- | ( | const timeval & | t1, | |
| const timeval & | t2 | |||
| ) | [inline] |
Definition at line 89 of file qeventdispatcher_unix_p.h.
References l.
00090 { 00091 timeval tmp; 00092 tmp.tv_sec = t1.tv_sec - t2.tv_sec; 00093 if ((tmp.tv_usec = t1.tv_usec - t2.tv_usec) < 0l) { 00094 --tmp.tv_sec; 00095 tmp.tv_usec += 1000000l; 00096 } 00097 return tmp; 00098 }
| bool operator< | ( | const timeval & | t1, | |
| const timeval & | t2 | |||
| ) | [inline] |
| bool operator== | ( | const timeval & | t1, | |
| const timeval & | t2 | |||
| ) | [inline] |
Definition at line 68 of file qeventdispatcher_unix_p.h.
Referenced by QUrlInfo::operator!=(), QItemSelectionRange::operator!=(), QImageTextKeyLang::operator!=(), QPalette::operator!=(), QPersistentModelIndex::operator!=(), QHostAddress::operator!=(), QTextFormat::operator!=(), QPainterPath::Element::operator!=(), QPen::operator!=(), QFontMetricsF::operator!=(), QFontMetrics::operator!=(), QGradient::operator!=(), QRegion::operator!=(), and qdesigner_internal::CETypes::EndPoint::operator!=().
1.5.1