D2D1_THREADING_MODE enumeration

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

Syntax


typedef enum  { 
  D2D1_THREADING_MODE_SINGLE_THREADED  = 0,
  D2D1_THREADING_MODE_MULTI_THREADED   = 1
} D2D1_THREADING_MODE;

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.

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

See also

Multithreaded Direct2D Apps
D2D1_CREATION_PROPERTIES

 

 

Community Additions

ADD
Show:
© 2014 Microsoft