//
// 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
{
///
///
/// C++:
/// Jolt/Core/Semaphore.h:35
///
/// Semaphore()
///
///
///
///
/// Constructor
///
///
[LibraryImport("jolt", EntryPoint = "Semaphore_Create")]
public static partial Semaphore Semaphore_Create();
[LibraryImport("jolt", EntryPoint = "Semaphore_Destroy")]
public static partial void Semaphore_Destroy(Semaphore self);
///
///
/// C++:
/// Jolt/Core/Semaphore.h:39
///
/// void Release(uint inNumber = 1)
///
///
///
///
/// Release the semaphore, signaling the thread waiting on the barrier that there may be work
///
///
[LibraryImport("jolt", EntryPoint = "Semaphore_Release")]
public static partial void Semaphore_Release(Semaphore self, uint number);
///
///
/// C++:
/// Jolt/Core/Semaphore.h:42
///
/// void Acquire(uint inNumber = 1)
///
///
///
///
/// Acquire the semaphore inNumber times
///
///
[LibraryImport("jolt", EntryPoint = "Semaphore_Acquire")]
public static partial void Semaphore_Acquire(Semaphore self, uint number);
///
///
/// C++:
/// Jolt/Core/Semaphore.h:45
///
/// inline int GetValue() const
///
///
///
///
/// Get the current value of the semaphore
///
///
[LibraryImport("jolt", EntryPoint = "Semaphore_GetValue")]
public static partial int Semaphore_GetValue(Semaphore self);
}
}
}