From c012318d74fed232b1c872a1a0cacf91ebcb1b6d Mon Sep 17 00:00:00 2001 From: David Lechner Date: Tue, 3 May 2022 22:26:29 -0500 Subject: unix: Implement `-X realtime` command-line option on macOS. This adds a new command line option to the unix port `-X realtime` to enable realtime priority on threads. This enables high precision timers for applications that need more accurate timers. Related docs: https://developer.apple.com/library/archive/technotes/tn2169/_index.html Fixes issue #8621. Signed-off-by: David Lechner --- docs/unix/quickref.rst | 2 ++ 1 file changed, 2 insertions(+) (limited to 'docs/unix/quickref.rst') diff --git a/docs/unix/quickref.rst b/docs/unix/quickref.rst index ec5312a535..2eac1edc79 100644 --- a/docs/unix/quickref.rst +++ b/docs/unix/quickref.rst @@ -73,6 +73,8 @@ General options: - ``-X heapsize=[w][K|M]`` sets the heap size for the garbage collector. The suffix ``w`` means words instead of bytes. ``K`` means x1024 and ``M`` means x1024x1024. + - ``-X realtime`` sets thread priority to realtime. This can be used to + improve timer precision. Only available on macOS. -- cgit v1.2.3