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>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
35f8374e35
Коммит
39db6d842f
@@ -456,6 +456,8 @@ DispatchThreadTracer::start_context()
|
||||
void
|
||||
DispatchThreadTracer::stop_context() // NOLINT(readability-convert-member-functions-to-static)
|
||||
{
|
||||
CHECK_NOTNULL(hsa::get_queue_controller())->disable_serialization();
|
||||
|
||||
client.wlock([&](auto& client_id) {
|
||||
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);
|
||||
client_id = std::nullopt;
|
||||
});
|
||||
|
||||
CHECK_NOTNULL(hsa::get_queue_controller())->disable_serialization();
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Ссылка в новой задаче
Block a user