/// <summary> /// Allocates thread local data to allow the current thread to call ODE. /// </summary> /// <param name="allocateFlags">Specifies thread allocation options.</param> public static void AllocateDataForThread(AllocateDataFlags allocateFlags) { var result = NativeMethods.dAllocateODEDataForThread(allocateFlags); if (result == 0) { throw new InsufficientMemoryException("The requested data could not be allocated."); } }
internal static extern int dAllocateODEDataForThread(AllocateDataFlags uiAllocateFlags);