Class DxgiKeyedMutex
Represents a keyed mutex, which allows exclusive access to a shared resource that is used by multiple devices.
Implements
Inherited Members
Namespace: JeremyAnsel.DirectX.Dxgi
Assembly: JeremyAnsel.DirectX.Dxgi.dll
Syntax
[SecurityCritical]
public class DxgiKeyedMutex : DxgiDeviceSubObject, IDisposable
Constructors
| Edit this page View SourceDxgiKeyedMutex(nint)
Initializes a new instance of the DxgiKeyedMutex class.
Declaration
public DxgiKeyedMutex(nint comPtr)
Parameters
| Type | Name | Description |
|---|---|---|
| nint | comPtr |
Fields
| Edit this page View SourceDxgiKeyedMutexGuid
The interface GUID.
Declaration
public static readonly Guid DxgiKeyedMutexGuid
Field Value
| Type | Description |
|---|---|
| Guid |
Methods
| Edit this page View SourceAcquireSync(ulong, uint)
Using a key, acquires exclusive rendering access to a shared resource.
Declaration
public void AcquireSync(ulong key, uint milliseconds)
Parameters
| Type | Name | Description |
|---|---|---|
| ulong | key | A value that indicates which device to give access to. |
| uint | milliseconds | The time-out interval, in milliseconds. |
ReleaseSync(ulong)
Using a key, releases exclusive rendering access to a shared resource.
Declaration
public void ReleaseSync(ulong key)
Parameters
| Type | Name | Description |
|---|---|---|
| ulong | key | A value that indicates which device to give access to. |