cuda::experimental::stf::exception_policies::circuit_breaker#

inline circuit_breaker_t cuda::experimental::stf::exception_policies::circuit_breaker(
::std::shared_ptr<int> __budget
)#

Creates a counter-based circuit breaker; see circuit_breaker_t.

The initial *__budget is the failure allowance restored on success.