Stop all client contexts prior to finalization (#721)
* Stop all client contexts prior to finalization
* Update lib/common/container/static_vector.hpp
- improve emplace_back for non-{move,copy}-assignable object
* Update samples/intercept_table/client.cpp
- improve robustness against static object destruction
* Update lib/rocprofiler-sdk/context/context.cpp
- change storage of registered context array
- stable_vector of optional contexts
- common::static_object wrapper around stable_vector
* Update samples/intercept_table/client.cpp
- use variable template for underlying function pointer
This commit is contained in:
committed by
GitHub
parent
e3c7eed7c0
commit
939e23e9d1
@@ -471,6 +471,7 @@ invoke_client_finalizer(rocprofiler_client_id_t client_id)
|
||||
if(itr && itr->internal_client_id.handle == client_id.handle &&
|
||||
itr->mutable_client_id.handle == client_id.handle)
|
||||
{
|
||||
context::stop_client_contexts(itr->internal_client_id);
|
||||
if(itr->configure_result && itr->configure_result->finalize)
|
||||
{
|
||||
// set to nullptr so finalize only gets called once
|
||||
|
||||
Reference in New Issue
Block a user