cl::sycl::property::buffer::use_mutex Class Reference
The use_mutex property adds the requirement that the memory which is owned by the SYCL buffer can be shared with the application via a mutex_class provided to the property. More...
#include <buffer.h>
Public Member Functions | |
use_mutex (mutex_class &mutexRef) | |
Constructs a SYCL use_mutex property instance with a reference to mutexRef parameter provided. More... | |
mutex_class * | get_mutex_ptr () const |
Retrieve the mutex provided on construction. More... | |
Detailed Description
The use_mutex property adds the requirement that the memory which is owned by the SYCL buffer can be shared with the application via a mutex_class provided to the property.
The mutex is locked by the runtime whenever the data is in use and unlocked otherwise. Data is synchronized with host data when the mutex is unlocked by the runtime.
Constructor & Destructor Documentation
◆ use_mutex()
|
inline |
Member Function Documentation
◆ get_mutex_ptr()
|
inline |
The documentation for this class was generated from the following file: