ADL (AMD Display Library) Public APIs  Version 17.1
Typedefs | Enumerations

Used with ADL_Main_ControlX2_Create and ADL2_Main_ControlX2_Create to specify how ADL handles API calls when executed by multiple threads concurrently. More...

Typedefs

typedef enum ADLThreadingModel ADLThreadingModel
 

Enumerations

enum  ADLThreadingModel { ADL_THREADING_UNLOCKED = 0, ADL_THREADING_LOCKED }
 

Detailed Description

Used with ADL_Main_ControlX2_Create and ADL2_Main_ControlX2_Create to specify how ADL handles API calls when executed by multiple threads concurrently.

Declares ADL threading behavior.

Typedef Documentation

◆ ADLThreadingModel

Enumeration Type Documentation

◆ ADLThreadingModel

Enumerator
ADL_THREADING_UNLOCKED 

Default behavior. ADL will not enforce serialization of ADL API executions by multiple threads. Multiple threads will be allowed to enter to ADL at the same time. Note that ADL library is not guaranteed to be thread-safe. Client that calls ADL_Main_Control_Create have to provide its own mechanism for ADL calls serialization.

ADL_THREADING_LOCKED 

ADL will enforce serialization of ADL API when called by multiple threads. Only single thread will be allowed to enter ADL API at the time. This option makes ADL calls thread-safe. You shouldn't use this option if ADL calls will be executed on Linux on x-server rendering thread. It can cause the application to hung.


Copyright © 2009-2020 Advanced Micro Devices, Inc. All rights reserved.