STLdb

PrevUpHomeNext

Class exclusive_transaction

stldb::exclusive_transaction

Synopsis

// In header: </Users/bobw/workspace/stldb_lib/stldb/transaction.h>


class exclusive_transaction : public stldb::Transaction {
public:
  // construct/copy/destruct
  exclusive_transaction();
  exclusive_transaction(const exclusive_transaction &);
  exclusive_transaction& operator=(const exclusive_transaction &);
  ~exclusive_transaction();

  // private member functions
  void lock_database(boost::interprocess::interprocess_upgradable_mutex &) ;
  void unlock_database() ;
};

Description

An exclusive transaction is a transaction, but the database guarantees that only one transaction of this type can be in progress at any one time.

exclusive_transaction public construct/copy/destruct

  1. exclusive_transaction();
  2. exclusive_transaction(const exclusive_transaction & t);
  3. exclusive_transaction& operator=(const exclusive_transaction & t);
  4. ~exclusive_transaction();

exclusive_transaction private member functions

  1. void lock_database(boost::interprocess::interprocess_upgradable_mutex & mutex) ;
  2. void unlock_database() ;

PrevUpHomeNext