Tag
cleanup-order
- Nov 11, 2024 Cancellation Points and the Half-Finished Cleanup State How asynchronous cancellation, unwinding, and cooperative cancellation interact with cleanup code, and why a cleanup routine must be reentrant against itself. systems programming
- Jul 11, 2024 Release Order at Scope Exit and the LIFO Cleanup Rule Why destructors, defer statements, and scope guards run in reverse order of acquisition, and which ordering guarantees survive partial construction and unwinding. systems programming
- Nov 30, 2022 Failure Atomicity and Cleanup on the Error Path How partial construction is made safe: commit-or-rollback discipline, errdefer-style compensation, and the invariants a constructor must restore before returning an error. systems programming