Nonmovable build scope, valid only inside withBuild's worker callback.
More...
#include <worker_storage.hpp>
|
|
| WorkerStorageBuild (const WorkerStorageBuild &)=delete |
|
WorkerStorageBuild & | operator= (const WorkerStorageBuild &)=delete |
|
| WorkerStorageBuild (WorkerStorageBuild &&)=delete |
|
WorkerStorageBuild & | operator= (WorkerStorageBuild &&)=delete |
| std::expected< void, BackgroundError > | commit (std::unique_ptr< WorkerStorageValue > &value, std::size_t bytes) |
| std::size_t | residentCap () const noexcept |
| std::size_t | scratchCap () const noexcept |
|
|
class | BackgroundWorkerStorage |
Nonmovable build scope, valid only inside withBuild's worker callback.
◆ commit()
- Parameters
-
| value | Worker-owned fully prepared value, preserved on rejection. |
| bytes | Actual resident allocation capacity, including payload metadata. |
- Returns
- Success after ownership transfer or LIMIT_EXCEEDED/INVALID_ARGUMENT. All scratch allocations must be destroyed before the enclosing callback returns.
◆ residentCap()
| std::size_t portals::WorkerStorageBuild::residentCap |
( |
| ) |
const |
|
inlinenoexcept |
- Returns
- Reserved resident byte ceiling; allocations must respect transient peak too.
◆ scratchCap()
| std::size_t portals::WorkerStorageBuild::scratchCap |
( |
| ) |
const |
|
inlinenoexcept |
- Returns
- Reserved scratch byte ceiling, retained until callback locals have been destroyed.
The documentation for this class was generated from the following file: