MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / AclDestroyContext

Function AclDestroyContext

src/c/AclContext.cpp:104–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102}
103
104extern "C" AclStatus AclDestroyContext(AclContext external_ctx)
105{
106 using namespace arm_compute;
107
108 IContext *ctx = get_internal(external_ctx);
109
110 StatusCode status = detail::validate_internal_context(ctx);
111 ARM_COMPUTE_RETURN_CENUM_ON_FAILURE(status);
112
113 if (ctx->refcount() != 0)
114 {
115 ARM_COMPUTE_LOG_ERROR_WITH_FUNCNAME_ACL("Context has references on it that haven't been released!");
116 // TODO: Fix the refcount with callback when reaches 0
117 }
118
119 delete ctx;
120
121 return utils::as_cenum<AclStatus>(status);
122}

Callers 3

setupMethod · 0.85
setupMethod · 0.85
setupMethod · 0.85

Calls 3

refcountMethod · 0.80
get_internalFunction · 0.50

Tested by

no test coverage detected