Skip to content

Commit e8d9cc8

Browse files
authored
[SYCL] Fix initialization issue on Windows (#2632)
Using initializer list causes compilation issue on Windows when using compile.py script.
1 parent 2a2b432 commit e8d9cc8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sycl/include/CL/sycl/detail/spinlock.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class SpinLock {
3333
void unlock() { MLock.clear(std::memory_order_release); }
3434

3535
private:
36-
std::atomic_flag MLock{ATOMIC_FLAG_INIT};
36+
std::atomic_flag MLock = ATOMIC_FLAG_INIT;
3737
};
3838
} // namespace detail
3939
} // namespace sycl

0 commit comments

Comments
 (0)