Lines Matching refs:Transaction
209 class Transaction;
211 friend class Transaction;
214 typedef std::list<Transaction*> TransactionList;
222 Transaction* writer;
242 // provided transaction to use the object. Returns an error code. |trans|
244 // The transaction is free to use the backend directly at any time after
246 int GetBackendForTransaction(Transaction* trans);
254 int DoomEntry(const std::string& key, Transaction* trans);
259 int AsyncDoomEntry(const std::string& key, Transaction* trans);
288 Transaction* trans);
294 Transaction* trans);
299 // Adds a transaction to an ActiveEntry. If this method returns ERR_IO_PENDING
300 // the transaction will be notified about completion via its IO callback. This
301 // method returns ERR_CACHE_RACE to signal the transaction that it cannot be
304 int AddTransactionToEntry(ActiveEntry* entry, Transaction* trans);
306 // Called when the transaction has finished working with this entry. |cancel|
309 void DoneWithEntry(ActiveEntry* entry, Transaction* trans, bool cancel);
311 // Called when the transaction has finished writting to this entry. |success|
315 // Called when the transaction has finished reading from this entry.
316 void DoneReadingFromEntry(ActiveEntry* entry, Transaction* trans);
318 // Convers the active writter transaction to a reader so that other
322 // Returns the LoadState of the provided pending transaction.
323 LoadState GetLoadStateForPendingTransaction(const Transaction* trans);
325 // Removes the transaction |trans|, from the pending list of an entry
327 void RemovePendingTransaction(Transaction* trans);
329 // Removes the transaction |trans|, from the pending list of |entry|.
331 Transaction* trans);
333 // Removes the transaction |trans|, from the pending list of |pending_op|.
335 Transaction* trans);