mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 20:48:24 +01:00
30 lines
1 KiB
C#
30 lines
1 KiB
C#
// <auto-generated/>
|
|
// Generated by Brutal.Jolt.Generate; do not edit by hand.
|
|
#nullable enable
|
|
|
|
using System.Runtime.CompilerServices;
|
|
using Brutal.Interop;
|
|
using Brutal.Numerics;
|
|
|
|
namespace Brutal.JoltApi
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// Helpers to safely lock the different mutexes that are part of the physics system while preventing deadlock
|
|
/// Class that keeps track per thread which lock are taken and if the order of locking is correct
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/PhysicsLock.h#L32">Jolt/Physics/PhysicsLock.h:32</see>
|
|
/// <br/>
|
|
/// <c>class PhysicsLock</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[InteropHandle]
|
|
public readonly partial struct PhysicsLock : IDisposable
|
|
{
|
|
public static PhysicsLock Create() => Jolt.PInvoke.PhysicsLock_Create();
|
|
|
|
public void Dispose() => Jolt.PInvoke.PhysicsLock_Destroy(this);
|
|
}
|
|
}
|