CompositionDrawingSurfaceUpdateWithKeyedMutexAsync Method
Updates the surface contents using an imported memory image using a keyed mutex as the means of synchronization
Namespace: Avalonia.Rendering.CompositionAssembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
public Task UpdateWithKeyedMutexAsync(
ICompositionImportedGpuImage image,
uint acquireIndex,
uint releaseIndex
)
Public Function UpdateWithKeyedMutexAsync (
image As ICompositionImportedGpuImage,
acquireIndex As UInteger,
releaseIndex As UInteger
) As Task
member UpdateWithKeyedMutexAsync :
image : ICompositionImportedGpuImage *
acquireIndex : uint32 *
releaseIndex : uint32 -> Task
- image ICompositionImportedGpuImage
- GPU image with new surface contents
- acquireIndex UInt32
- The mutex key to wait for before accessing the image
- releaseIndex UInt32
- The mutex key to release for after accessing the image
TaskA task that completes when update operation is completed and user code is free to destroy or dispose the image