File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -501,7 +501,7 @@ struct _pi_queue {
501
501
502
502
template <typename T> bool all_of (T &&f) {
503
503
{
504
- std::lock_guard compute_guard (compute_stream_mutex_);
504
+ std::lock_guard<std::mutex> compute_guard (compute_stream_mutex_);
505
505
unsigned int end =
506
506
std::min (static_cast <unsigned int >(compute_streams_.size ()),
507
507
num_compute_streams_);
@@ -510,7 +510,7 @@ struct _pi_queue {
510
510
return false ;
511
511
}
512
512
{
513
- std::lock_guard transfer_guard (transfer_stream_mutex_);
513
+ std::lock_guard<std::mutex> transfer_guard (transfer_stream_mutex_);
514
514
unsigned int end =
515
515
std::min (static_cast <unsigned int >(transfer_streams_.size ()),
516
516
num_transfer_streams_);
Original file line number Diff line number Diff line change @@ -480,7 +480,7 @@ struct _pi_queue {
480
480
481
481
template <typename T> bool all_of (T &&f) {
482
482
{
483
- std::lock_guard compute_guard (compute_stream_mutex_);
483
+ std::lock_guard<std::mutex> compute_guard (compute_stream_mutex_);
484
484
unsigned int end =
485
485
std::min (static_cast <unsigned int >(compute_streams_.size ()),
486
486
num_compute_streams_);
@@ -489,7 +489,7 @@ struct _pi_queue {
489
489
return false ;
490
490
}
491
491
{
492
- std::lock_guard transfer_guard (transfer_stream_mutex_);
492
+ std::lock_guard<std::mutex> transfer_guard (transfer_stream_mutex_);
493
493
unsigned int end =
494
494
std::min (static_cast <unsigned int >(transfer_streams_.size ()),
495
495
num_transfer_streams_);
Original file line number Diff line number Diff line change @@ -404,7 +404,7 @@ bool queue_impl::ext_oneapi_empty() const {
404
404
// If we have in-order queue where events are not discarded then just check
405
405
// the status of the last event.
406
406
if (isInOrder () && !MDiscardEvents) {
407
- std::lock_guard Lock (MLastEventMtx);
407
+ std::lock_guard<std::mutex> Lock (MLastEventMtx);
408
408
return MLastEvent.get_info <info::event::command_execution_status>() ==
409
409
info::event_command_status::complete;
410
410
}
@@ -421,7 +421,7 @@ bool queue_impl::ext_oneapi_empty() const {
421
421
422
422
// We may have events like host tasks which are not submitted to the backend
423
423
// queue so we need to get their status separately.
424
- std::lock_guard Lock (MMutex);
424
+ std::lock_guard<std::mutex> Lock (MMutex);
425
425
for (event Event : MEventsShared)
426
426
if (Event.get_info <info::event::command_execution_status>() !=
427
427
info::event_command_status::complete)
You can’t perform that action at this time.
0 commit comments