D2D1_THREADING_MODE enumeration (d2d1_1.h)

Specifies the threading mode used while simultaneously creating the device, factory, and device context.

Syntax

typedef enum D2D1_THREADING_MODE {
  D2D1_THREADING_MODE_SINGLE_THREADED,
  D2D1_THREADING_MODE_MULTI_THREADED,
  D2D1_THREADING_MODE_FORCE_DWORD = 0xffffffff
} ;

Constants

 
D2D1_THREADING_MODE_SINGLE_THREADED
Resources may only be invoked serially. Device context state is not protected from multi-threaded access.
D2D1_THREADING_MODE_MULTI_THREADED
Resources may be invoked from multiple threads. Resources use interlocked reference counting and their state is protected.
D2D1_THREADING_MODE_FORCE_DWORD
Value: 0xffffffff

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]
Header d2d1_1.h

See also

D2D1_CREATION_PROPERTIES

Multithreaded Direct2D Apps