Transactional domain creation.
More...
|
| auto | execute (const char *name) noexcept -> std::expected< domain *, lib::kernel_error > |
| | Execute the domain creation.
|
|
auto | commit () noexcept -> void |
| | Commit — disarms the automatic rollback on destruction.
|
|
auto | committed () const noexcept -> bool |
| | Return true if commit() has been called.
|
|
auto | mark_rolled_back () noexcept -> void |
| | Explicitly mark as rolled back (for derived classes that do custom rollback before destruction).
|
|
auto | operator= (const transaction &)=delete |
|
auto | rolled_back () const noexcept -> bool |
| | Return true if rollback has been executed.
|
|
|
class | zxfoundation::base::transaction< domain_create_txn > |
|
|
| ~transaction () noexcept |
| | Destructor: fires on_rollback() if commit() was never called.
|
Transactional domain creation.
◆ execute()
| auto zxfoundation::dgp::domain::detail::domain_create_txn::execute |
( |
const char * | name | ) |
->std::expected< domain *, lib::kernel_error > |
|
inlinenodiscardnoexcept |
Execute the domain creation.
- Parameters
-
| [in] | name | Human-readable name (must remain valid for the domain's lifetime). |
- Returns
- Pointer to the activated domain, or kernel_error.
The documentation for this class was generated from the following file:
- zxfoundation/dgp/domain.zcomponent/core.cxx