Skip to content

Commit

Permalink
解决编译错误
Browse files Browse the repository at this point in the history
  • Loading branch information
heyuanjie87 authored and Rbb666 committed Oct 21, 2024
1 parent 08888b6 commit b14a140
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/idle.c
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,9 @@ void rt_thread_idle_init(void)
char idle_thread_name[RT_NAME_MAX];
#endif /* RT_NAME_MAX > 0 */

#ifdef RT_USING_IDLE_HOOK
rt_spin_lock_init(&_hook_spinlock);
#endif

for (i = 0; i < _CPUS_NR; i++)
{
Expand Down

0 comments on commit b14a140

Please sign in to comment.