How eclipse-threadx/threadx works
Eclipse ThreadX is an embedded real-time operating system. An application uses its kernel APIs to create threads and coordinate work through scheduling, synchronization, queues, timers, and memory services; optional module support adds a separately managed execution environment. The repository also includes an SMP kernel variant, architecture-specific ports, tracing, and a POSIX compatibility layer. The README documents these capabilities, but sampled source is limited, so most runtime relationships are shown as unverified rather than asserted calls.
Main entry points: tx_api.h ThreadX API · tx_thread_create.c Thread scheduling · txm_module_manager_util.c Module manager · txm_module_application_request.c Module service calls
Components 17
Kernel Services
- ThreadX API
common/inc/tx_api.h - Thread scheduling
common/src/tx_thread_create.c - Synchronization
common/src/tx_semaphore_get.c - Message queues
common/src/tx_queue_send.c - Memory pools
common/src/tx_byte_allocate.c - Timers & time
common/src/tx_timer_activate.c - Kernel startup
common/src/tx_initialize_kernel_enter.c
Module Runtime
- Module API
common_modules/inc/txm_module.h - Module manager
common_modules/module_manager/src/txm_module_manager_util.c - Module service calls
common_modules/module_lib/src/txm_module_application_request.c - Module dispatch
common_modules/module_manager/src/txm_module_manager_kernel_dispatch.c - Module protection
ports_module/cortex_m3/ac5/module_manager/src/txm_module_manager_mm_register_setup.c
Platform Support
- SMP kernel
common_smp/src/tx_thread_smp_utilities.c - Architecture ports
ports/xtensa/xcc/src/tx_xtensa_stack_error_handler.c
Compatibility & Observability
- Trace services
common/src/tx_trace_enable.c - POSIX adaptation
utility/rtos_compatibility_layers/posix/px_system_manager.c
Other components
- Embedded application
Connections 15
- Embedded application → ThreadX API: calls
- ThreadX API → Thread scheduling: provides services
- ThreadX API → Synchronization: provides services
- ThreadX API → Message queues: provides services
- ThreadX API → Memory pools: provides services
- ThreadX API → Timers & time: provides services
- Kernel startup → Thread scheduling: starts kernel
- Module API → Module service calls: invokes
- Module service calls → Module dispatch: requests service
- Module manager → Module dispatch: dispatches
- Module manager → Module protection: configures protection
- POSIX adaptation → ThreadX API: uses queue API
utility/rtos_compatibility_layers/posix/px_system_manager.c - Trace services → ThreadX API: exposes services
- SMP kernel → Thread scheduling: variant kernel
- Architecture ports → Thread scheduling: supports execution