ThreadX#
Pigweed’s ThreadX integration provides a suite of abstractions and helpers designed to make developing C++ applications on ThreadX safer, more robust, and fully compatible with Pigweed’s portable facades.
Compile-time lock safety: Support for Clang’s static thread-safety analysis annotations, enabling compile-time detection of data races and incorrect lock ordering.
Safe non-recursive mutexes: Enforces strict non-recursive mutex semantics and assertions to detect bugs and prevent deadlocks.
Port-safe interrupt spinlocks: Disables preemption and interrupts to prevent deadlocks and context switches during critical sections.
Learn how Pigweed’s wrappers improve safety, catch bugs at compile-time or runtime, and compare directly with raw ThreadX APIs.
Integrate ThreadX with GN, configure target parameters, and configure module backend options.
Pigweed provides native ThreadX backends for several of its core OS abstraction layers.