arch: deprecate _current
`_current` is now functionally equals to `arch_curr_thread()`, remove its usage in-tree and deprecate it instead of removing it outright, as it has been with us since forever. Signed-off-by: Yong Cong Sin <ycsin@meta.com> Signed-off-by: Yong Cong Sin <yongcong.sin@gmail.com>
This commit is contained in:
parent
1a752e8a35
commit
b1def7145f
107 changed files with 490 additions and 479 deletions
|
@ -28,12 +28,12 @@ void test_thread_entry(void *p, void *p1, void *p2)
|
|||
|
||||
void thread_swap(void *p1, void *p2, void *p3)
|
||||
{
|
||||
k_thread_abort(_current);
|
||||
k_thread_abort(arch_current_thread());
|
||||
}
|
||||
|
||||
void thread_suspend(void *p1, void *p2, void *p3)
|
||||
{
|
||||
k_thread_suspend(_current);
|
||||
k_thread_suspend(arch_current_thread());
|
||||
}
|
||||
|
||||
void thread_yield0(void *p1, void *p2, void *p3)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue