SWDEV-514449: Fix missing thread pre/post callbacks (#204)
* SWDEV-514449: Fix missing thread pre/post callbacks
- invoke pre/post-callback around internal thread creation
* Update changelog
---------
Co-authored-by: Jonathan R. Madsen <jonathanrmadsen@gmail.com>
[ROCm/rocprofiler-sdk commit: 0d7ca72d84]
이 커밋은 다음에 포함됨:
@@ -165,4 +165,6 @@ Full documentation for ROCprofiler-SDK is available at [rocm.docs.amd.com/projec
|
||||
|
||||
### Resolved issues
|
||||
|
||||
- Fixed missing callbacks around internal thread creation within counter collection service
|
||||
|
||||
### Removed
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "lib/rocprofiler-sdk/counters/sample_processing.hpp"
|
||||
#include "lib/rocprofiler-sdk/internal_threading.hpp"
|
||||
|
||||
#include <condition_variable>
|
||||
#include <mutex>
|
||||
@@ -49,7 +50,9 @@ public:
|
||||
if(valid.exchange(true)) return;
|
||||
exited.store(false);
|
||||
|
||||
internal_threading::notify_pre_internal_thread_create(ROCPROFILER_LIBRARY);
|
||||
consumer = std::thread{&consumer_thread_t::consumer_loop, this};
|
||||
internal_threading::notify_post_internal_thread_create(ROCPROFILER_LIBRARY);
|
||||
}
|
||||
|
||||
void exit()
|
||||
|
||||
새 이슈에서 참조
사용자 차단