Lines Matching refs:DatabaseThread
30 #include "DatabaseThread.h"
43 DatabaseThread::DatabaseThread()
52 DatabaseThread::~DatabaseThread()
54 // The DatabaseThread will only be destructed when both its owner
56 // has deref'ed the DatabaseThread object. The DatabaseContext destructor
60 // DatabaseThread before returning.
64 bool DatabaseThread::start()
71 m_threadID = createThread(DatabaseThread::databaseThreadStart, this, "WebCore: Database");
76 void DatabaseThread::requestTermination(DatabaseTaskSynchronizer *cleanupSync)
79 LOG(StorageAPI, "DatabaseThread %p was asked to terminate\n", this);
83 bool DatabaseThread::terminationRequested(DatabaseTaskSynchronizer* taskSynchronizer) const
95 void DatabaseThread::databaseThreadStart(void* vDatabaseThread)
97 DatabaseThread* dbThread = static_cast<DatabaseThread*>(vDatabaseThread);
101 void DatabaseThread::databaseThread()
104 // Wait for DatabaseThread::start() to complete.
106 LOG(StorageAPI, "Started DatabaseThread %p", this);
118 LOG(StorageAPI, "About to detach thread %i and clear the ref to DatabaseThread %p, which currently has %i ref(s)", m_threadID, this, refCount());
143 void DatabaseThread::recordDatabaseOpen(DatabaseBackend* database)
151 void DatabaseThread::recordDatabaseClosed(DatabaseBackend* database)
159 void DatabaseThread::scheduleTask(PassOwnPtr<DatabaseTask> task)
165 void DatabaseThread::scheduleImmediateTask(PassOwnPtr<DatabaseTask> task)
179 void DatabaseThread::unscheduleDatabaseTasks(DatabaseBackend* database)