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

Function rt_sched_thread_is_binding

include/rtthread.h:894–901  ·  view source on GitHub ↗

is thread bond on core */

Source from the content-addressed store, hash-verified

892#ifdef RT_USING_SMP
893/* is thread bond on core */
894rt_inline rt_bool_t rt_sched_thread_is_binding(rt_thread_t thread)
895{
896 if (thread == RT_NULL)
897 {
898 thread = rt_thread_self();
899 }
900 return !thread || RT_SCHED_CTX(thread).bind_cpu != RT_CPUS_NR;
901}
902
903#else
904#define rt_sched_thread_is_binding(thread) (RT_TRUE)

Callers 1

rt_cpu_get_idFunction · 0.85

Calls 1

rt_thread_selfFunction · 0.85

Tested by

no test coverage detected