description | title | ms.date | f1_keywords | ms.assetid | |||
---|---|---|---|---|---|---|---|
Learn more about: scoped_d3d_access_lock Class |
scoped_d3d_access_lock Class |
11/04/2016 |
|
0ad333e6-9839-4736-a722-16d95d70c4b1 |
RAII wrapper for a D3D access lock on an accelerator_view object.
class scoped_d3d_access_lock;
Name | Description |
---|---|
scoped_d3d_access_lock Constructor | Overloaded. Constructs a scoped_d3d_access_lock object. The lock is released when this object goes out of scope. |
~scoped_d3d_access_lock Destructor | Releases the D3D access lock on the associated accelerator_view object. |
Name | Description |
---|---|
operator= | Takes ownership of a lock from another scoped_d3d_access_lock . |
scoped_d3d_access_lock
Header: amprt.h
Namespace: concurrency::direct3d
Constructs a scoped_d3d_access_lock
object. The lock is released when this object goes out of scope.
explicit scoped_d3d_access_lock(// [1] constructor
accelerator_view& _Av);
explicit scoped_d3d_access_lock(// [2] constructor
accelerator_view& _Av,
adopt_d3d_access_lock_t _T);
scoped_d3d_access_lock(// [3] move constructor
scoped_d3d_access_lock&& _Other);
_Av
The accelerator_view
for the lock to adopt.
_T
The adopt_d3d_access_lock_t
object.
_Other
The scoped_d3d_access_lock
object from which to move an existing lock.
[1] Constructor Acquires a D3D access lock on the given accelerator_view object. Construction blocks until the lock is acquired.
[2] Constructor Adopt a D3D access lock from the given accelerator_view object.
[3] Move Constructor
Takes an existing D3D access lock from another scoped_d3d_access_lock
object. Construction does not block.
Releases the D3D access lock on the associated accelerator_view
object.
~scoped_d3d_access_lock();
Takes ownership of a D3D access lock from another scoped_d3d_access_lock
object, releasing the previous lock.
scoped_d3d_access_lock& operator= (scoped_d3d_access_lock&& _Other);
_Other
The accelerator_view from which to move the D3D access lock.
A reference to this scoped_accelerator_view_lock
.