Loading...
Searching...
No Matches
ImplicitModuleTransaction.qc.dox.h
// -*- mode: c++; indent-tabs-mode: nil -*-
namespace DataProvider {
class ImplicitModuleTransaction {
public:
protected:
list<code> rollback();
public:
destructor();
static add(code rb_code);
protected:
addRollback(code rb_code);
public:
};
};
namespace Priv {
// Holds and optionally executes rollback code
thread_local ImplicitModuleTransaction rb;
};
DataProvider::ImplicitModuleTransaction
Implements a mechanism to roll back changes made in external module initialization if an error occurs...
Definition ImplicitModuleTransaction.qc.dox.h:28
DataProvider::ImplicitModuleTransaction::addRollback
addRollback(code rb_code)
Adds a rollback closure to be executed if there is an active exception in module initialization.
DataProvider::ImplicitModuleTransaction::destructor
destructor()
Executes all rollback code if there is an active exception in module initialization.
DataProvider::ImplicitModuleTransaction::add
static add(code rb_code)
Adds a rollback closure to be executed if there is an active exception in module initialization.
DataProvider
Qore AbstractDataField class definition.
Definition AbstractDataField.qc.dox.h:27
Priv
Private definitions.
Definition AbstractDataProviderType.qc.dox.h:454