summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShane Kearns <shane.kearns@accenture.com>2011-10-28 11:20:07 +0100
committerShane Kearns <shane.kearns@accenture.com>2011-10-28 11:27:14 +0100
commit080fb267e54cd17697d0a7dbe00449c17d461a11 (patch)
tree1db7100138939e4174a87cceef7220f759bbdbd4
parent7a0cdd851d8ea1e2b51d3b91dbb69a67d379b794 (diff)
downloadqt4-tools-080fb267e54cd17697d0a7dbe00449c17d461a11.tar.gz
Symbian - disable memory mapping in QNetworkDiskCache
The implementation of memory mapped files in Open C requires munmap to be called from the same thread as mmap. As the QIODevice can be handed off to another thread, this breaks application code that works on other operating systems. Task-number: QT-5309 Reviewed-by: Tadaaki Matsumoto
-rw-r--r--src/network/access/qnetworkdiskcache.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/access/qnetworkdiskcache.cpp b/src/network/access/qnetworkdiskcache.cpp
index 3b18fe8886..9d91a8f88e 100644
--- a/src/network/access/qnetworkdiskcache.cpp
+++ b/src/network/access/qnetworkdiskcache.cpp
@@ -404,7 +404,7 @@ QIODevice *QNetworkDiskCache::data(const QUrl &url)
// ### verify that QFile uses the fd size and not the file name
qint64 size = file->size() - file->pos();
const uchar *p = 0;
-#ifndef Q_OS_WINCE
+#if !defined(Q_OS_WINCE) && !defined(Q_OS_SYMBIAN)
p = file->map(file->pos(), size);
#endif
if (p) {