Represents a reference to value with appropriate lock acquired. More...
#include <sycl/detail/locked.hpp>
Public Member Functions | |
Locked (T &v, std::mutex &mutex) | |
T & | get () const |
Represents a reference to value with appropriate lock acquired.
Employed for acquire/release logic. Acquire action is construction of instance of locked<>. Release action is destruction of instance of locked<>.
Definition at line 23 of file locked.hpp.
|
inline |
Definition at line 28 of file locked.hpp.
|
inline |
Definition at line 30 of file locked.hpp.