struct host_object_state
Declaration
struct host_object_state { /* full declaration omitted */ };
Member Variables
- bool owns_instance
- If true, `destroy_host_object_instruction` will be emitted when `destroy_host_object` is called (false for `host_object <T & /void>`)
- instruction* last_side_effect
- Host tasks with side effects will be serialized wrt/ the host object.
Member Function Overview
- apply_epoch(instruction * epoch) → void
- host_object_state(bool owns_instance, instruction * last_epoch) → explicit
Member Functions
¶void apply_epoch(instruction* epoch)
void apply_epoch(instruction* epoch)
Description
If the last side-effect instruction was older than epoch
, replaces it with epoch
.
Parameters
- instruction* epoch
¶explicit host_object_state(
bool owns_instance,
instruction* last_epoch)
explicit host_object_state(
bool owns_instance,
instruction* last_epoch)
Parameters
- bool owns_instance
- instruction* last_epoch