50
50
// Can be used to wait until DatabaseTask is completed.
51
51
// Has to be passed into DatabaseTask::create to be associated with the task.
52
52
class DatabaseTaskSynchronizer : public Noncopyable {
55
54
DatabaseTaskSynchronizer();
57
56
// Called from main thread to wait until task is completed.
58
57
void waitForTaskCompletion();
65
64
Mutex m_synchronousMutex;