Skip to main content

UpdateWithKeyedMutexAsync Method

Updates the surface contents using an imported memory image using a keyed mutex as the means of synchronization

Definition

Namespace: Avalonia.Rendering.Composition
Assembly: Avalonia.Base (in Avalonia.Base.dll)

public Task UpdateWithKeyedMutexAsync(
ICompositionImportedGpuImage image,
uint acquireIndex,
uint releaseIndex
)

Parameters

  ICompositionImportedGpuImage
GPU image with new surface contents
  UInt32
The mutex key to wait for before accessing the image
  UInt32
The mutex key to release for after accessing the image

Return Value

Task
A task that completes when update operation is completed and user code is free to destroy or dispose the image

See Also

Reference

CompositionDrawingSurface Class
Avalonia.Rendering.Composition Namespace