Fix for ATT context stop while packets are being processed (#171)
Fix for context stop while packets are being processed Co-authored-by: Giovanni Baraldi <gbaraldi@amd.com>
This commit is contained in:
committato da
GitHub
parent
35f8374e35
commit
39db6d842f
@@ -456,6 +456,8 @@ DispatchThreadTracer::start_context()
|
|||||||
void
|
void
|
||||||
DispatchThreadTracer::stop_context() // NOLINT(readability-convert-member-functions-to-static)
|
DispatchThreadTracer::stop_context() // NOLINT(readability-convert-member-functions-to-static)
|
||||||
{
|
{
|
||||||
|
CHECK_NOTNULL(hsa::get_queue_controller())->disable_serialization();
|
||||||
|
|
||||||
client.wlock([&](auto& client_id) {
|
client.wlock([&](auto& client_id) {
|
||||||
if(!client_id) return;
|
if(!client_id) return;
|
||||||
|
|
||||||
@@ -463,8 +465,6 @@ DispatchThreadTracer::stop_context() // NOLINT(readability-convert-member-funct
|
|||||||
CHECK_NOTNULL(hsa::get_queue_controller())->remove_callback(*client_id);
|
CHECK_NOTNULL(hsa::get_queue_controller())->remove_callback(*client_id);
|
||||||
client_id = std::nullopt;
|
client_id = std::nullopt;
|
||||||
});
|
});
|
||||||
|
|
||||||
CHECK_NOTNULL(hsa::get_queue_controller())->disable_serialization();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|||||||
Fai riferimento in un nuovo problema
Block a user