@@ -6114,15 +6114,15 @@ if set final data is [code]#nullptr)#.
61146114[[subsec:mutex]]
61156115=== Synchronization primitives
61166116
6117- To prevent race conditions between accesses to the host allocation owned by a [code]#buffer# in the
6118- <<sycl-runtime>> (e.g., by accessors) and in host code, it is necesssary
6119- to use manual synchronization though a [code]#host_accessor#, or by
6120- passing a [code]#std::mutex# to the [code]#buffer# constructor through a
6117+ To prevent race conditions between accesses to the host allocation owned by a
6118+ [code]#buffer# in the <<sycl-runtime>> (e.g., by accessors) and in host code, it
6119+ is necesssary to use manual synchronization though a [code]#host_accessor#, or
6120+ by passing a [code]#std::mutex# to the [code]#buffer# constructor through a
61216121[code]#property#.
61226122
6123- When a [code]#buffer# was constructed with a [code]#std::mutex# property, the SYCL runtime is
6124- required to lock the mutex whenever the data is in use by the runtime, and unlock
6125- the mutex when the data is not in use by the SYCL runtime.
6123+ When a [code]#buffer# was constructed with a [code]#std::mutex# property, the
6124+ SYCL runtime is required to lock the mutex whenever the data is in use by the
6125+ runtime, and unlock the mutex when the data is not in use by the SYCL runtime.
61266126
61276127[source,,linenums]
61286128----
@@ -6142,9 +6142,9 @@ the mutex when the data is not in use by the SYCL runtime.
61426142}
61436143----
61446144
6145- When the runtime releases the mutex, the user is guaranteed that the data has been
6146- copied back through the shared pointer --- unless the final data destination has been
6147- changed using the member function [code]#set_final_data()#.
6145+ When the runtime releases the mutex, the user is guaranteed that the data has
6146+ been copied back through the shared pointer --- unless the final data
6147+ destination has been changed using the member function [code]#set_final_data()#.
61486148
61496149
61506150[[subsec:accessors]]
0 commit comments