Class DxgiKeyedMutex
Represents a keyed mutex, which allows exclusive access to a shared resource that is used by multiple devices.
Inherited Members
Namespace: JeremyAnsel.DirectX.Dxgi
Assembly: JeremyAnsel.DirectX.Dxgi.dll
Syntax
public sealed class DxgiKeyedMutex : DxgiDeviceSubObject, IDisposable, IDxgiReleasable
Constructors
| Edit this page View SourceDxgiKeyedMutex(object)
Initializes a new instance of the DxgiKeyedMutex class.
Declaration
public DxgiKeyedMutex(object resource)
Parameters
Type | Name | Description |
---|---|---|
object | resource | A resource interface which implements the |
Properties
| Edit this page View SourceHandle
Gets an handle representing the DXGI object interface.
Declaration
public override object Handle { get; }
Property Value
Type | Description |
---|---|
object |
Overrides
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. |