summaryrefslogtreecommitdiffstats
path: root/WebCore/html/FileThread.cpp
diff options
context:
space:
mode:
authorSteve Block <steveblock@google.com>2010-08-04 11:41:34 +0100
committerSteve Block <steveblock@google.com>2010-08-09 12:04:44 +0100
commitdb14019a23d96bc8a444b6576a5da8bd1cfbc8b0 (patch)
tree9f793c5b0f5e1f2aca8247158920e2c4bf962bbf /WebCore/html/FileThread.cpp
parentbf916837aa84f1e4b00e6ed6268516c2acd27545 (diff)
downloadexternal_webkit-db14019a23d96bc8a444b6576a5da8bd1cfbc8b0.zip
external_webkit-db14019a23d96bc8a444b6576a5da8bd1cfbc8b0.tar.gz
external_webkit-db14019a23d96bc8a444b6576a5da8bd1cfbc8b0.tar.bz2
Merge WebKit at r64523 : Initial merge by git.
Change-Id: Ibb796c6802e757b1d9b40f58205cfbe4da95fcd4
Diffstat (limited to 'WebCore/html/FileThread.cpp')
-rw-r--r--WebCore/html/FileThread.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/WebCore/html/FileThread.cpp b/WebCore/html/FileThread.cpp
index 02b1718..3a3413c 100644
--- a/WebCore/html/FileThread.cpp
+++ b/WebCore/html/FileThread.cpp
@@ -61,7 +61,7 @@ bool FileThread::start()
void FileThread::stop()
{
- return m_queue.kill();
+ m_queue.kill();
}
void FileThread::postTask(PassOwnPtr<Task> task)
@@ -69,17 +69,17 @@ void FileThread::postTask(PassOwnPtr<Task> task)
m_queue.append(task);
}
-class SameFilePredicate {
+class SameInstancePredicate {
public:
- SameFilePredicate(const FileStream* stream) : m_stream(stream) { }
- bool operator()(FileThread::Task* task) const { return task->stream() == m_stream; }
+ SameInstancePredicate(const void* instance) : m_instance(instance) { }
+ bool operator()(FileThread::Task* task) const { return task->instance() == m_instance; }
private:
- const FileStream* m_stream;
+ const void* m_instance;
};
-void FileThread::unscheduleTasks(const FileStream* stream)
+void FileThread::unscheduleTasks(const void* instance)
{
- SameFilePredicate predicate(stream);
+ SameInstancePredicate predicate(instance);
m_queue.removeIf(predicate);
}