OnGPUAppsListChanged
OnGPUAppsListChanged is called by ADLX to provide an updated list of GPU applications.
Syntax
adlx_bool OnGPUAppsListChanged (IADLXGPU2 * pGPU, IADLXApplicationList * pApplications)
Parameters
-
[out]
pGPU IADLXGPU2 * The pointer to a GPU that is changed. -
[out]
pApplications IADLXApplicationList * The pointer to a list of applications that is changed.
Return Value
If the application requires ADLX to continue notifying the next listener, true must be returned.
If the application requires ADLX to stop notifying the next listener, false must be returned.
Remarks
Once the application registers to the notifications with AddGPUAppsListEventListener , ADLX will call this method until the application unregisters from the notifications with RemoveGPUAppsListEventListener . The method should return quickly to not block the execution path in ADLX. If the method requires a long processing of the event notification, the application must hold onto a reference to the new GPU application list with Acquire and make it available on an asynchronous thread and return immediately. When the asynchronous thread is done processing, it must discard the new GPU application list with Release .
Requirements
Header |
include “IApplications” |
Minimum version |
1.4 |