syclreference.com
  1. SYCL
  2. | API Reference
  3. | Buffers
  4. | use_mutex

use_mutex

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.

class cl::sycl::property::buffer::use_mutex;

Member Functions

(constructor)
get_mutex_ptr

Retrieve the mutex provided on construction

syclreference.com — SYCL Reference Pages

Last updated: 2019-01-24 00:24:52 +0000