다음을 통해 공유


scoped_d3d_access_lock Class

 

RAII wrapper for a D3D access lock on an accelerator_view object.

Syntax

class scoped_d3d_access_lock;  

Members

Public Constructors

Name Description
[scoped_d3d_access_lock::scoped_d3d_access_lock Constructor](#scoped_d3d_access_lock__scoped_d3d_access_lock_ctor Overloaded. Constructs a scoped_d3d_access_lock object. The lock is released when this object goes out of scope.
scoped_d3d_access_lock::~scoped_d3d_access_lock Destructor Releases the D3D access lock on the associated accelerator_view object.

Public Operators

Name Description
scoped_d3d_access_lock::operator= Operator Takes ownership of a lock from another scoped_d3d_access_lock.

Inheritance Hierarchy

scoped_d3d_access_lock

Requirements

Header: amprt.h

Namespace: concurrency::direct3d

scoped_d3d_access_lock::scoped_d3d_access_lock Constructor

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);

Parameters

_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.

Construction

[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.

scoped_d3d_access_lock::~scoped_d3d_access_lock Destructor

Releases the D3D access lock on the associated accelerator_view object.

~scoped_d3d_access_lock();

scoped_d3d_access_lock::operator= Operator

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);

Parameters

_Other
The accelerator_view from which to move the D3D access lock.

Return Value

A reference to this scoped_accelerator_view_lock.

See Also

Concurrency::direct3d Namespace