// // 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 { /// [LibraryImport("jolt", EntryPoint = "JobSystemThreadPool_Create")] public static partial JobSystemThreadPool JobSystemThreadPool_Create( uint maxJobs, uint maxBarriers, int numThreads ); /// [LibraryImport("jolt", EntryPoint = "JobSystemThreadPool_Create_2")] public static partial JobSystemThreadPool JobSystemThreadPool_Create_2(); [LibraryImport("jolt", EntryPoint = "JobSystemThreadPool_Destroy")] public static partial void JobSystemThreadPool_Destroy(JobSystemThreadPool self); /// /// /// C++: /// Jolt/Core/JobSystemThreadPool.h:38 ///
/// void SetThreadInitFunction(const InitExitFunction &inInitFunction) ///
///
/// /// /// initFunction: The callback is invoked from native code: it must be a static method marked /// [UnmanagedCallersOnly(CallConvs = [typeof(CallConvCdecl)])], and userData is passed back to it /// verbatim. Pass null for none. The callback and userData are retained by the native object until they /// are replaced or the owner is destroyed - keep whatever userData points at (a GCHandle, an /// allocation) alive for at least that long, and don't free it at the end of the call. /// /// [LibraryImport("jolt", EntryPoint = "JobSystemThreadPool_SetThreadInitFunction")] public static partial void JobSystemThreadPool_SetThreadInitFunction( JobSystemThreadPool self, delegate* unmanaged[Cdecl] initFunction, nint initFunctionUserData ); /// /// /// C++: /// Jolt/Core/JobSystemThreadPool.h:39 ///
/// void SetThreadExitFunction(const InitExitFunction &inExitFunction) ///
///
/// /// /// exitFunction: The callback is invoked from native code: it must be a static method marked /// [UnmanagedCallersOnly(CallConvs = [typeof(CallConvCdecl)])], and userData is passed back to it /// verbatim. Pass null for none. The callback and userData are retained by the native object until they /// are replaced or the owner is destroyed - keep whatever userData points at (a GCHandle, an /// allocation) alive for at least that long, and don't free it at the end of the call. /// /// [LibraryImport("jolt", EntryPoint = "JobSystemThreadPool_SetThreadExitFunction")] public static partial void JobSystemThreadPool_SetThreadExitFunction( JobSystemThreadPool self, delegate* unmanaged[Cdecl] exitFunction, nint exitFunctionUserData ); /// [LibraryImport("jolt", EntryPoint = "JobSystemThreadPool_Init")] public static partial void JobSystemThreadPool_Init( JobSystemThreadPool self, uint maxJobs, uint maxBarriers, int numThreads ); /// [LibraryImport("jolt", EntryPoint = "JobSystemThreadPool_SetNumThreads")] public static partial void JobSystemThreadPool_SetNumThreads(JobSystemThreadPool self, int numThreads); } } }