@@ -71,7 +71,7 @@ event queue_impl::memset(const std::shared_ptr<detail::queue_impl> &Self,
7171 {
7272 // We need to submit command and update the last event under same lock if we
7373 // have in-order queue.
74- auto ScopeLock = isInOrder () ? std::unique_lock (MLastEventMtx)
74+ auto ScopeLock = isInOrder () ? std::unique_lock<std::mutex> (MLastEventMtx)
7575 : std::unique_lock<std::mutex>();
7676 // If the last submitted command in the in-order queue is host_task then
7777 // wait for it before submitting usm command.
@@ -113,7 +113,7 @@ event queue_impl::memcpy(const std::shared_ptr<detail::queue_impl> &Self,
113113 {
114114 // We need to submit command and update the last event under same lock if we
115115 // have in-order queue.
116- auto ScopeLock = isInOrder () ? std::unique_lock (MLastEventMtx)
116+ auto ScopeLock = isInOrder () ? std::unique_lock<std::mutex> (MLastEventMtx)
117117 : std::unique_lock<std::mutex>();
118118 // If the last submitted command in the in-order queue is host_task then
119119 // wait for it before submitting usm command.
@@ -156,7 +156,7 @@ event queue_impl::mem_advise(const std::shared_ptr<detail::queue_impl> &Self,
156156 {
157157 // We need to submit command and update the last event under same lock if we
158158 // have in-order queue.
159- auto ScopeLock = isInOrder () ? std::unique_lock (MLastEventMtx)
159+ auto ScopeLock = isInOrder () ? std::unique_lock<std::mutex> (MLastEventMtx)
160160 : std::unique_lock<std::mutex>();
161161 // If the last submitted command in the in-order queue is host_task then
162162 // wait for it before submitting usm command.
0 commit comments