STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Private Member Functions | Private Attributes | List of all members
Concurrency::direct3d::scoped_d3d_access_lock Class Reference

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

#include <amprt.h>

Public Member Functions

_AMPIMP scoped_d3d_access_lock (accelerator_view &_Av)
 Acquire a D3D access lock on the given accelerator_view. The lock is released when this object goes out of scope. Construction will block until the lock is acquired. More...
 
_AMPIMP scoped_d3d_access_lock (accelerator_view &_Av, adopt_d3d_access_lock_t _T)
 Construct a scoped_d3d_access_lock on an accelerator_view for which the lock is already held (e.g. was acquired by d3d_access_try_lock). The D3D access lock must already be held by the calling thread and not controlled by any other scoped_d3d_access_lock. More...
 
_AMPIMP ~scoped_d3d_access_lock ()
 Destructor for scoped_d3d_access_lock: unlock the accelerator_view. More...
 
_AMPIMP scoped_d3d_access_lock (scoped_d3d_access_lock &&_Other)
 Move constructor for scoped_d3d_access_lock: Take ownership of a lock from another scoped_d3d_access_lock. More...
 
_AMPIMP scoped_d3d_access_lockoperator= (scoped_d3d_access_lock &&_Other)
 Move assignment operator for scoped_d3d_access_lock: Take ownership of a lock from another scoped_d3d_access_lock, releasing the previous lock. More...
 

Private Member Functions

 scoped_d3d_access_lock (const scoped_d3d_access_lock &_Other)
 
scoped_d3d_access_lockoperator= (const scoped_d3d_access_lock &_Other)
 

Private Attributes

_Accelerator_view_impl_ptr _M_impl
 

Detailed Description

RAII wrapper for a D3D access lock on an accelerator_view.

Constructor & Destructor Documentation

_AMPIMP Concurrency::direct3d::scoped_d3d_access_lock::scoped_d3d_access_lock ( accelerator_view _Av)
explicit

Acquire a D3D access lock on the given accelerator_view. The lock is released when this object goes out of scope. Construction will block until the lock is acquired.

Parameters
_AvThe accelerator_view to lock.
_AMPIMP Concurrency::direct3d::scoped_d3d_access_lock::scoped_d3d_access_lock ( accelerator_view _Av,
adopt_d3d_access_lock_t  _T 
)
explicit

Construct a scoped_d3d_access_lock on an accelerator_view for which the lock is already held (e.g. was acquired by d3d_access_try_lock). The D3D access lock must already be held by the calling thread and not controlled by any other scoped_d3d_access_lock.

Parameters
_AvThe accelerator_view for the lock to adopt.
_TThe adopt_d3d_access_lock object.
_AMPIMP Concurrency::direct3d::scoped_d3d_access_lock::~scoped_d3d_access_lock ( )

Destructor for scoped_d3d_access_lock: unlock the accelerator_view.

_AMPIMP Concurrency::direct3d::scoped_d3d_access_lock::scoped_d3d_access_lock ( scoped_d3d_access_lock &&  _Other)

Move constructor for scoped_d3d_access_lock: Take ownership of a lock from another scoped_d3d_access_lock.

Parameters
_OtherThe accelerator_view from which to move.
Concurrency::direct3d::scoped_d3d_access_lock::scoped_d3d_access_lock ( const scoped_d3d_access_lock _Other)
private

Member Function Documentation

_AMPIMP scoped_d3d_access_lock& Concurrency::direct3d::scoped_d3d_access_lock::operator= ( scoped_d3d_access_lock &&  _Other)

Move assignment operator for scoped_d3d_access_lock: Take ownership of a lock from another scoped_d3d_access_lock, releasing the previous lock.

Parameters
_OtherThe accelerator_view from which to move.
Returns
A reference to this scoped_accelerator_view_lock.
scoped_d3d_access_lock& Concurrency::direct3d::scoped_d3d_access_lock::operator= ( const scoped_d3d_access_lock _Other)
private

Member Data Documentation

_Accelerator_view_impl_ptr Concurrency::direct3d::scoped_d3d_access_lock::_M_impl
private

The documentation for this class was generated from the following file: