diff options
author | Thiago Macieira <thiago.macieira@nokia.com> | 2010-04-19 19:39:00 (GMT) |
---|---|---|
committer | Thiago Macieira <thiago.macieira@nokia.com> | 2010-04-20 09:24:55 (GMT) |
commit | 2c961fcf39c991ee461a35aa62158cdd3ac8e9f8 (patch) | |
tree | 7973e79e7fa6d8a438df08e0a8938b696ed6d83d /src/network/kernel/qhostinfo_p.h | |
parent | c4c75ebd65454fd27bffefb4a3468ece20990c86 (diff) | |
download | Qt-2c961fcf39c991ee461a35aa62158cdd3ac8e9f8.zip Qt-2c961fcf39c991ee461a35aa62158cdd3ac8e9f8.tar.gz Qt-2c961fcf39c991ee461a35aa62158cdd3ac8e9f8.tar.bz2 |
[tst_qhostinfo] Properly clean up the cache and lookup threads.
Ensure that one test won't interfere with the next
Reviewed-by: Markus Goetz
Diffstat (limited to 'src/network/kernel/qhostinfo_p.h')
-rw-r--r-- | src/network/kernel/qhostinfo_p.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/network/kernel/qhostinfo_p.h b/src/network/kernel/qhostinfo_p.h index 4fc74e9..e11766b 100644 --- a/src/network/kernel/qhostinfo_p.h +++ b/src/network/kernel/qhostinfo_p.h @@ -116,7 +116,7 @@ public: // These functions are outside of the QHostInfo class and strictly internal. // Do NOT use them outside of QAbstractSocket. QHostInfo Q_NETWORK_EXPORT qt_qhostinfo_lookup(const QString &name, QObject *receiver, const char *member, bool *valid, int *id); -void Q_NETWORK_EXPORT qt_qhostinfo_clear_cache(); +void Q_AUTOTEST_EXPORT qt_qhostinfo_clear_cache(); void Q_AUTOTEST_EXPORT qt_qhostinfo_enable_cache(bool e); class QHostInfoCache @@ -161,6 +161,7 @@ public: QHostInfoLookupManager(); ~QHostInfoLookupManager(); + void clear(); void work(); // called from QHostInfo |