@@ -36,7 +36,7 @@ https://github.com/intel/llvm/issues
36
36
37
37
== Dependencies
38
38
39
- This extension is written against the SYCL 2020 revision 5 specification. All
39
+ This extension is written against the SYCL 2020 revision 6 specification. All
40
40
references below to the "core SYCL specification" or to section numbers in the
41
41
SYCL specification refer to that revision.
42
42
@@ -58,9 +58,9 @@ object alive.
58
58
This extension adds the notion of a "weak" SYCL object, represented by the
59
59
`weak_object` class. A weak object holds a reference to a SYCL object with
60
60
common reference semantics of the specified type but will not keep the
61
- underlying object alive. As such, a weak object can be queries about having
62
- expired and exposes interfaces for locking the underlying object, creating a
63
- copy of it if it is still alive .
61
+ underlying object alive. A weak object is considered expired if the underlying
62
+ object is no longer alive. If a weak object has not expired, a copy of the
63
+ underlying object can be created by calling either `lock` or `try_lock` .
64
64
65
65
Additionally this extension adds the notion of owner-based ordering to allow for
66
66
use of SYCL object and their weak variants in order-oriented data structures and
141
141
constexpr weak_object() noexcept;
142
142
----
143
143
144
- | Constructor for creating an empty `weak_object`. These are
144
+ | Constructor for creating an empty `weak_object`.
145
145
146
146
a|
147
147
[source,c++]
193
193
void swap(weak_object &Other) noexcept;
194
194
----
195
195
196
- | Exhanges the reference to the underlying SYCL object with the one held by
196
+ | Exchanges the reference to the underlying SYCL object with the one held by
197
197
`Other`.
198
198
199
199
a|
@@ -217,13 +217,13 @@ std::optional<SyclObject> try_lock() const noexcept;
217
217
a|
218
218
[source,c++]
219
219
----
220
- SyclObject lock() const noexcept ;
220
+ SyclObject lock() const;
221
221
----
222
222
223
223
| Returns the underlying SYCL object.
224
224
225
- Throws an exception with the `errc::invalid` error code if `std::nullopt` if the
226
- `weak_object` is empty or if `expired()` returns `true`.
225
+ Throws an exception with the `errc::invalid` error code if the `weak_object` is
226
+ empty or if `expired()` returns `true`.
227
227
228
228
a|
229
229
[source,c++]
0 commit comments