class RtControl
package digigun.sys.rt
High-level API for real-time and performance functions.
Static methods
staticmlockall(current:Bool = true, future:Bool = true):Bool
Locks the entire address space of the current process into RAM to prevent swapping. Note: This usually requires root or administrative privileges on POSIX systems.
Parameters:
current | Lock currently mapped memory. |
|---|---|
future | Lock all future memory mappings. |
Returns:
True if successful.
staticmunlockall():Bool
Unlocks all locked memory mappings for the current process.
Returns:
True if successful.
staticsetupCrashHandler(reportPath:String):Bool
Sets up a native crash handler to capture stack traces and minidumps. When a fatal native error occurs (Segfault, Access Violation), a report is written to the specified path. On Windows, a .dmp file is also generated.
Parameters:
reportPath | Path to the text report file. |
|---|
Returns:
True if successful.