nuttx/arch/sim/src
bijunda e874561291 sim: replace posix timer with GCD dispatch timer on macOS
macOS does not provide full POSIX timer support for the host-side
simulator build, so references to timer_t and timer_create can fail when
building sim:fb on Apple hosts. Replace the POSIX timer path with a
Grand Central Dispatch timer on macOS while keeping the existing POSIX
implementation for other hosts.

The dispatch timer raises SIGALRM from its event handler so the host
side keeps the same timer-driven behavior expected by the simulator.
This preserves the existing timing model and fixes the macOS host build
failure for sim:fb.

Signed-off-by: Peter Bee <bijunda@bytedance.com>
2026-04-14 19:40:10 +08:00
..
cmake sim: Fix linker support and macOS host build issues 2026-03-05 21:52:58 +08:00
sim sim: replace posix timer with GCD dispatch timer on macOS 2026-04-14 19:40:10 +08:00
.gitignore arch/sim: Copy include/nuttx/config.h to the local folder 2021-07-27 07:44:33 +09:00
CMakeLists.txt cmake:add missing cflag "-D_FILE_OFFSET_BITS=64" of sim 2025-12-18 22:18:49 +08:00
Makefile build(sim): fix macOS XQuartz include and library paths for sim:fb 2026-04-14 19:40:10 +08:00
nuttx-names.in arch/sim: Add sigdelset to nuttx-names.in 2026-01-31 14:14:32 +08:00