circuitpython/ports/unix
David Lechner c012318d74 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 <david@pybricks.com>
2022-05-24 00:51:47 +10:00
..
variants py/malloc: Introduce m_tracked_calloc, m_tracked_free functions. 2022-05-05 10:31:50 +10:00
.gitignore unix/.gitignore: Remove *.py from ignore list. 2022-02-28 19:02:58 +11:00
alloc.c all: Reformat C and Python source code with tools/codeformat.py. 2020-02-28 10:33:03 +11:00
coverage.c py/malloc: Introduce m_tracked_calloc, m_tracked_free functions. 2022-05-05 10:31:50 +10:00
coveragecpp.cpp esp32,unix: Support building C++ code. 2020-10-29 15:29:50 +11:00
fatfs_port.c unix/fatfs_port: Fix month offset in timestamp calculation. 2020-09-02 00:19:06 +10:00
gccollect.c all: Update to point to files in new shared/ directory. 2021-07-12 17:08:10 +10:00
input.c all: Update to point to files in new shared/ directory. 2021-07-12 17:08:10 +10:00
input.h ports: Make new ports/ sub-directory and move all ports there. 2017-09-06 13:40:51 +10:00
main.c unix: Implement -X realtime command-line option on macOS. 2022-05-24 00:51:47 +10:00
Makefile unix/moduos: Convert module to use extmod version. 2022-03-09 21:13:57 +11:00
modffi.c unix: Make port-specific modules use MP_REGISTER_MODULE. 2022-05-18 20:57:09 +10:00
modjni.c unix: Make port-specific modules use MP_REGISTER_MODULE. 2022-05-18 20:57:09 +10:00
modmachine.c extmod: Make extmod modules use MP_REGISTER_MODULE. 2022-05-18 20:49:12 +10:00
modtermios.c unix: Make port-specific modules use MP_REGISTER_MODULE. 2022-05-18 20:57:09 +10:00
modtime.c unix: Make port-specific modules use MP_REGISTER_MODULE. 2022-05-18 20:57:09 +10:00
moduos.c unix/moduos: Convert module to use extmod version. 2022-03-09 21:13:57 +11:00
moduselect.c unix: Make port-specific modules use MP_REGISTER_MODULE. 2022-05-18 20:57:09 +10:00
modusocket.c unix: Make port-specific modules use MP_REGISTER_MODULE. 2022-05-18 20:57:09 +10:00
mpbthciport.c extmod/nimble: Make stm32 and unix NimBLE ports use synchronous events. 2020-11-13 17:19:05 +11:00
mpbtstackport_common.c unix/mpbtstackport_common: Implement mp_bluetooth_hci_active. 2021-02-12 12:07:05 +11:00
mpbtstackport_h4.c unix: Implement BLE H4 HCI UART for btstack/nimble. 2020-09-08 12:53:24 +10:00
mpbtstackport_usb.c extmod/modbluetooth: Refactor stack/hci/driver/port bindings. 2020-09-08 11:41:31 +10:00
mpbtstackport.h unix: Implement BLE H4 HCI UART for btstack/nimble. 2020-09-08 12:53:24 +10:00
mpconfigport.h unix: Make port-specific modules use MP_REGISTER_MODULE. 2022-05-18 20:57:09 +10:00
mpconfigport.mk unix/mpconfigport.mk: Update comment about TLS implementations. 2019-06-05 15:28:30 +10:00
mphalport.h all: Update to point to files in new shared/ directory. 2021-07-12 17:08:10 +10:00
mpnimbleport.c extmod/nimble: Make stm32 and unix NimBLE ports use synchronous events. 2020-11-13 17:19:05 +11:00
mpnimbleport.h unix: Implement BLE H4 HCI UART for btstack/nimble. 2020-09-08 12:53:24 +10:00
mpthreadport.c unix: Implement -X realtime command-line option on macOS. 2022-05-24 00:51:47 +10:00
mpthreadport.h unix: Implement -X realtime command-line option on macOS. 2022-05-24 00:51:47 +10:00
qstrdefsport.h all: Add *FORMAT-OFF* in various places. 2020-02-28 10:31:07 +11:00
unix_mphal.c py/mpstate: Schedule KeyboardInterrupt on main thread. 2021-06-19 09:49:00 +10:00