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 9d3c26e commit 7170b23Copy full SHA for 7170b23
sycl/unittests/queue/Wait.cpp
@@ -123,14 +123,14 @@ TEST(QueueWait, QueueWaitTest) {
123
buffer<int, 1> buf{range<1>(1)};
124
125
std::mutex m;
126
- std::unique_lock TestLock(m, std::defer_lock);
+ std::unique_lock<std::mutex> TestLock(m, std::defer_lock);
127
TestLock.lock();
128
129
event HostTaskEvent = Q.submit([&](handler &Cgh) {
130
auto acc = buf.template get_access<access::mode::read>(Cgh);
131
Cgh.host_task([=, &m]() {
132
(void)acc;
133
- std::unique_lock InsideHostTaskLock(m);
+ std::unique_lock<std::mutex> InsideHostTaskLock(m);
134
});
135
136
std::shared_ptr<detail::event_impl> HostTaskEventImpl =
0 commit comments