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.
| Method | Description |
|---|---|
| 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.
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 |
|
|
DLL |
|
See also