Skip to main content

ClikaRT::placement

namespace

Classes

NameDescription
PlacementScopeRAII region: sets the calling thread's ambient placement on construction and restores the previous one on destruction (normal exit and exception unwind alike). Scopes nest; each restores exactly what it displaced. Not copyable or movable: the scope is bound to the thread and region that created it.

Functions

ambient()

StreamOrDevice ambient()

The calling thread's ambient placement. Unspecified when none is set.

Declared in ClikaRT/compute/placement.h, line 35

set_ambient()

StreamOrDevice set_ambient(StreamOrDevice value)

Replace the calling thread's ambient placement and return the previous one. Pass a default-constructed (unspecified) value to clear it. Prefer PlacementScope for region-shaped use; this is the primitive it rides.

Declared in ClikaRT/compute/placement.h, line 40