brutal/brutal.jolt/Brutal.Jolt/Generated/PInvoke/Semaphore.gen.cs
2026-10-15 14:12:02 +13:00

77 lines
3.2 KiB
C#

// <auto-generated/>
// Generated by Brutal.Jolt.Generate; do not edit by hand.
#nullable enable
using Brutal.Interop;
using Brutal.Numerics;
namespace Brutal.JoltApi
{
public static partial class Jolt
{
public static unsafe partial class PInvoke
{
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Core/Semaphore.h#L35">Jolt/Core/Semaphore.h:35</see>
/// <br/>
/// <c>Semaphore()</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Constructor
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "Semaphore_Create")]
public static partial Semaphore Semaphore_Create();
[LibraryImport("jolt", EntryPoint = "Semaphore_Destroy")]
public static partial void Semaphore_Destroy(Semaphore self);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Core/Semaphore.h#L39">Jolt/Core/Semaphore.h:39</see>
/// <br/>
/// <c>void Release(uint inNumber = 1)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Release the semaphore, signaling the thread waiting on the barrier that there may be work
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "Semaphore_Release")]
public static partial void Semaphore_Release(Semaphore self, uint number);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Core/Semaphore.h#L42">Jolt/Core/Semaphore.h:42</see>
/// <br/>
/// <c>void Acquire(uint inNumber = 1)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Acquire the semaphore inNumber times
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "Semaphore_Acquire")]
public static partial void Semaphore_Acquire(Semaphore self, uint number);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Core/Semaphore.h#L45">Jolt/Core/Semaphore.h:45</see>
/// <br/>
/// <c>inline int GetValue() const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Get the current value of the semaphore
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "Semaphore_GetValue")]
public static partial int Semaphore_GetValue(Semaphore self);
}
}
}