We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1851e28 commit 6b61562Copy full SHA for 6b61562
unified-runtime/source/adapters/level_zero/queue.cpp
@@ -2040,7 +2040,7 @@ ur_result_t ur_queue_handle_t_::resetCommandList(
2040
// If events in the queue are discarded then we can't check their status.
2041
// Helper for checking of event completion
2042
auto EventCompleted = [](ur_event_handle_t Event) -> bool {
2043
- std::scoped_lock<ur_shared_mutex> EventLock(Event->Mutex);
+ std::shared_lock<ur_shared_mutex> EventLock(Event->Mutex);
2044
ze_result_t ZeResult =
2045
Event->Completed
2046
? ZE_RESULT_SUCCESS
0 commit comments