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)
- C#
- VB
- F#
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
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