is thread bond on core */
| 892 | #ifdef RT_USING_SMP |
| 893 | /* is thread bond on core */ |
| 894 | rt_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) |
no test coverage detected