Skip to content

Commit 35f2adf

Browse files
committed
rename thread_yield to sched_yield
1 parent b643d56 commit 35f2adf

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

so3/include/thread.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ tcb_t *user_thread(clone_args_t *args);
127127
int thread_join(tcb_t *tcb);
128128
void thread_exit(int exit_status);
129129
void clean_thread(tcb_t *tcb);
130-
SYSCALL_DECLARE(thread_yield, void);
130+
SYSCALL_DECLARE(sched_yield, void);
131131

132132
void *thread_idle(void *dummy);
133133

so3/kernel/thread.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ void *thread_idle(void *dummy)
339339
/*
340340
* Yield to another thread, i.e. simply invoke a call to schedule()
341341
*/
342-
SYSCALL_DEFINE0(thread_yield)
342+
SYSCALL_DEFINE0(sched_yield)
343343
{
344344
schedule();
345345
return 0;

so3/syscall.tbl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ mmap
3838
mmap2
3939
nanosleep
4040
futex
41+
sched_yield
4142
pipe IPC_PIPE
4243
pipe2 IPC_PIPE
4344
rt_sigaction IPC_SIGNAL

0 commit comments

Comments
 (0)