ID2D1Multithread interface (d2d1_1.h)

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

Inheritance

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

Methods

The ID2D1Multithread interface has these methods.

 
ID2D1Multithread::Enter

Enters the Direct2D API critical section, if it exists.
ID2D1Multithread::GetMultithreadProtected

Returns whether the Direct2D factory was created with the D2D1_FACTORY_TYPE_MULTI_THREADED flag.
ID2D1Multithread::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

Requirement Value
Minimum supported client Windows 8 and Platform Update for Windows 7 [desktop apps | UWP apps]
Minimum supported server Windows Server 2012 and Platform Update for Windows Server 2008 R2 [desktop apps | UWP apps]
Target Platform Windows
Header d2d1_1.h

See also

ID2D1Factory