ID2D1MultiThread interface

A locking mechanism from a Direct2D factory that Direct2D uses to control exclusive resource access in an app that is uses multiple threads.

Members

The ID2D1MultiThread interface inherits from the IUnknown interface. ID2D1MultiThread also has these types of members:

Methods

The ID2D1MultiThread interface has these methods.

MethodDescription
Enter

Enters the Direct2D API critical section, if it exists.

GetMultithreadProtected

Returns whether the Direct2D factory was created with the D2D1_FACTORY_TYPE_MULTI_THREADED flag.

Leave

Leaves the Direct2D API critical section, if it exists.

 

Remarks

You can get an ID2D1MultiThread object by querying for it from an ID2D1Factory object.

You should use this lock while doing any operation on a Direct3D/DXGI surface. Direct2D will wait on any call until you leave the critical section.

Note  Normal rendering is guarded automatically by an internal Direct2D lock.

Requirements

Minimum supported client

Windows 8 and Platform Update for Windows 7 [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2012 and Platform Update for Windows Server 2008 R2 [desktop apps | Windows Store apps]

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Header

D2d1_1.h

DLL

D2d1.dll

See also

ID2D1Factory

 

 

Community Additions

ADD
Show:
© 2014 Microsoft