MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / rt_cpu_get_id

Function rt_cpu_get_id

src/cpu_mp.c:262–270  ·  view source on GitHub ↗

* @brief Get logical CPU ID * * @return logical CPU ID * * @note This function only has MP version. */

Source from the content-addressed store, hash-verified

260 * @note This function only has MP version.
261 */
262rt_base_t rt_cpu_get_id(void)
263{
264
265 RT_ASSERT(rt_sched_thread_is_binding(RT_NULL) ||
266 rt_hw_interrupt_is_disabled() ||
267 !rt_scheduler_is_available());
268
269 return rt_hw_cpu_id();
270}
271
272/**
273 * @}

Callers 7

_signal_deliverFunction · 0.85
rt_signal_checkFunction · 0.85
idle_thread_entryFunction · 0.85
rt_timer_checkFunction · 0.85
rt_tick_increaseFunction · 0.85
rt_tick_increase_tickFunction · 0.85

Calls 4

rt_hw_cpu_idFunction · 0.50

Tested by

no test coverage detected