Skip to content

Commit

Permalink
Add pointer-to-object to list of atomic_ref types
Browse files Browse the repository at this point in the history
The fact that this was missing from the list is a bug. sycl::atomic_ref has a
specialization for pointer types, and several other parts of the specification
talk about atomic operations on pointers.

Use of the term "pointer-to-object types" is aligned std::atomic_ref.

Signed-off-by: John Pennycook <[email protected]>
  • Loading branch information
Pennycook committed Jan 17, 2025
1 parent 83b07fa commit eb8c9e3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions adoc/chapters/programming_interface.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -20033,8 +20033,9 @@ The template parameter [code]#T# must be one of the following types:
* [code]#unsigned long#,
* [code]#long long#,
* [code]#unsigned long long#,
* [code]#float#, or
* [code]#double#.
* [code]#float#,
* [code]#double#, or
* Any pointer-to-object type.

In addition, the type [code]#T# must satisfy one of the following conditions:

Expand Down

0 comments on commit eb8c9e3

Please sign in to comment.