Skip to content

OnGPUListChanged

Navigation: ADLX SDK ReferencesADLX InterfacesGPUIADLXGPUsEventListener

Syntax

adlx_bool    OnGPUListChanged (IADLXGPUList* pNewGPUs)

Parameters

#DirectionNameTypeDescription
1.[out]pNewGPUsIADLXGPUListThe pointer to the new GPU list.

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 AddGPUsListEventListener, ADLX will call this method until the application unregisters from the notifications with RemoveGPUsListEventListener.

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 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 list with Release.

Requirements

Headerinclude “ISystem.h”
Minimum version1.0

See Also: IADLXGPUList, AddGPUsListEventListener, RemoveGPUsListEventListener, Acquire, Release