CmdBarrier#

Fully qualified name: cupva::CmdBarrier

Defined in src/host/cpp_api/include/cupva_host.hpp

class CmdBarrier : public cupva::BaseCmd#

Barrier is the command barrier of the Commands in a Stream.

Any Command submitted after the Barrier can begin execution only after all Command instances submitted before the Barrier complete the execution.

Public Functions

CmdBarrier() noexcept#

Construct a new Barrier object.

Usage considerations

  • Allowed context for the API call

    • Thread-safe: No

  • API group

    • Init: No

    • Runtime: Yes

    • De-Init: No

~CmdBarrier() noexcept#

Destroy the Barrier object.

Usage considerations

  • Allowed context for the API call

    • Thread-safe: No

  • API group

    • Init: No

    • Runtime: Yes

    • De-Init: No

CmdBarrier(CmdBarrier &&obj) noexcept#

Move constructor.

Usage considerations

  • Allowed context for the API call

    • Thread-safe: No

  • API group

    • Init: No

    • Runtime: Yes

    • De-Init: No

CmdBarrier &operator=(CmdBarrier &&obj) & noexcept#

Move assignment.

Usage considerations

  • Allowed context for the API call

    • Thread-safe: No

  • API group

    • Init: No

    • Runtime: Yes

    • De-Init: No

CmdBarrier(CmdBarrier const&) = delete#
CmdBarrier &operator=(CmdBarrier const&) & = delete#
void finalize()#

Destroy the resources created by a BaseCmd object.

This method is exposed to allow fine-grained control over error handling.

During destruction of the object, this method will be called but the destructor must not propagate exceptions. To handle exceptions, manually invoke this method prior to object destruction.

Usage considerations

  • Allowed context for the API call

    • Thread-safe: No

  • API group

    • Init: No

    • Runtime: No

    • De-Init: Yes

Throws:
  • cupva::Exception(DriverAPIError) – if driver returns error during de-initialization of mapped/pinned memory

  • cupva::Exception(NotAllowedInOperationalState) – if called when NVIDIA DRIVE OS VM state is “Operational”