Share via


SyncLockWithStatusT::SyncLockWithStatusT Constructor

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at SyncLockWithStatusT::SyncLockWithStatusT Constructor.

Supports the WRL infrastructure and is not intended to be used directly from your code.

Syntax

SyncLockWithStatusT(  
   _Inout_ SyncLockWithStatusT&& other  
);  
  
explicit SyncLockWithStatusT(  
   typename SyncTraits::Type sync,  
   DWORD status  
);  

Parameters

other
An rvalue-reference to another SyncLockWithStatusT object.

sync
A reference to another SyncLockWithStatusT object.

status
The value of the status_ data member of the other parameter or the sync parameter.

Remarks

Initializes a new instance of the SyncLockWithStatusT class.

The first constructor initializes the current SyncLockWithStatusT object from another SyncLockWithStatusT specified by parameter other, and then invalidates the other SyncLockWithStatusT object. The second constructor is protected, and initializes the current SyncLockWithStatusT object to an invalid state.

Requirements

Header: corewrappers.h

Namespace: Microsoft::WRL::Wrappers::Details

See Also

SyncLockWithStatusT Class
SyncLockWithStatusT::GetStatus Method