legate::Scope::Impl#

class Impl

Public Functions

inline void trigger_end_scope()

Initiate actions required when scope is about to end.

When the Scope ends and the ParallelPolicy is replaced, it may trigger additional actions, such as flushing the scheduling window.

Throws:

std::invalid_argument – exception if operations submitted in the scope are not streamable.

inline void destruct()

Separate out the destructor actions as a separate function so that we can call them inside a catch clause inside Scope’s destructor, in order to restore the global scope to correct state.