Thread_model
[Constants and Definitions]

Declares ADL threading behavior. More...


Enumerations

enum  ADLThreadingModel { ADL_THREADING_UNLOCKED = 0, ADL_THREADING_LOCKED }


Detailed Description

Declares ADL threading behavior.

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


Enumeration Type Documentation

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-2016 Advanced Micro Devices, Inc. All rights reserved.