Lines Matching full:writer
94 writer(NULL),
111 PendingOp() : disk_entry(NULL), writer(NULL) {}
116 WorkItem* writer;
309 entry->writer = NULL;
324 delete pending_op->writer;
383 MetadataWriter* writer = new MetadataWriter(trans);
385 // The writer will self destruct when done.
386 writer->Write(url, expected_response_time, buf, buf_len);
461 if (pending_op->writer) {
469 pending_op->writer = item.release();
476 pending_op->writer->ClearCallback();
493 DCHECK(pending_op->writer);
570 DCHECK(entry->writer || !entry->readers.empty());
577 if (pending_op->writer) {
584 pending_op->writer = item;
616 DCHECK(!entry->writer);
643 DCHECK(!entry->writer);
717 if (pending_op->writer) {
724 pending_op->writer = item;
746 if (pending_op->writer) {
753 pending_op->writer = item;
779 // We implement a basic reader/writer lock for the disk cache entry. If
780 // there is already a writer, then everyone has to wait for the writer to
787 if (entry->writer || entry->will_process_pending_queue) {
795 entry->writer = trans;
808 if (!entry->writer && !entry->pending_queue.empty())
817 // the writer, there is nothing to cancel.
821 if (entry->writer) {
822 DCHECK(trans == entry->writer);
844 entry->writer = NULL;
869 DCHECK(!entry->writer);
881 DCHECK(entry->writer);
882 DCHECK(entry->writer->mode() == Transaction::READ_WRITE);
885 Transaction* trans = entry->writer;
887 entry->writer = NULL;
902 Transaction* writer = i->second->writer;
903 return writer ? writer->GetWriterLoadState() : LOAD_STATE_WAITING_FOR_CACHE;
953 if (pending_op->writer->Matches(trans)) {
954 pending_op->writer->ClearTransaction();
955 pending_op->writer->ClearEntry();
986 DCHECK(!entry->writer);
1009 WorkItemOperation op = pending_op->writer->operation();
1015 scoped_ptr<WorkItem> item(pending_op->writer);
1028 // The writer transaction is gone.
1111 scoped_ptr<WorkItem> item(pending_op->writer);
1134 pending_op->writer = pending_item;