| Qore DataProvider Module Reference 3.2.2

Loading...
Searching...
No Matches
ImplicitModuleTransaction.qc.dox.h
1// -*- mode: c++; indent-tabs-mode: nil -*-
3
24
26 namespace DataProvider {
28 class ImplicitModuleTransaction {
29
30 public:
31
32
33 protected:
34 list<code> rollback();
35
36 public:
37
39 destructor();
40
41
43 static add(code rb_code);
44
46 protected:
47 addRollback(code rb_code);
48 public:
49
50};
51};
52
54 namespace Priv {
55// Holds and optionally executes rollback code
56 thread_local ImplicitModuleTransaction rb;
57};
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