@@ -71,7 +71,7 @@ event queue_impl::memset(const std::shared_ptr<detail::queue_impl> &Self,
71
71
{
72
72
// We need to submit command and update the last event under same lock if we
73
73
// have in-order queue.
74
- auto ScopeLock = isInOrder () ? std::unique_lock (MLastEventMtx)
74
+ auto ScopeLock = isInOrder () ? std::unique_lock<std::mutex> (MLastEventMtx)
75
75
: std::unique_lock<std::mutex>();
76
76
// If the last submitted command in the in-order queue is host_task then
77
77
// wait for it before submitting usm command.
@@ -113,7 +113,7 @@ event queue_impl::memcpy(const std::shared_ptr<detail::queue_impl> &Self,
113
113
{
114
114
// We need to submit command and update the last event under same lock if we
115
115
// have in-order queue.
116
- auto ScopeLock = isInOrder () ? std::unique_lock (MLastEventMtx)
116
+ auto ScopeLock = isInOrder () ? std::unique_lock<std::mutex> (MLastEventMtx)
117
117
: std::unique_lock<std::mutex>();
118
118
// If the last submitted command in the in-order queue is host_task then
119
119
// wait for it before submitting usm command.
@@ -156,7 +156,7 @@ event queue_impl::mem_advise(const std::shared_ptr<detail::queue_impl> &Self,
156
156
{
157
157
// We need to submit command and update the last event under same lock if we
158
158
// have in-order queue.
159
- auto ScopeLock = isInOrder () ? std::unique_lock (MLastEventMtx)
159
+ auto ScopeLock = isInOrder () ? std::unique_lock<std::mutex> (MLastEventMtx)
160
160
: std::unique_lock<std::mutex>();
161
161
// If the last submitted command in the in-order queue is host_task then
162
162
// wait for it before submitting usm command.
0 commit comments