Added a boolean "force" parameter to thread_yield(). When true, the

function has the old behavior. When false, it just calls the scheduler
without any priority adjustment or other stuff.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23906 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2008-02-07 11:40:31 +00:00
parent d082779211
commit 9835c090a6
4 changed files with 36 additions and 20 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ void thread_reset_for_exec(void);
status_t thread_init(struct kernel_args *args);
status_t thread_preboot_init_percpu(struct kernel_args *args, int32 cpuNum);
void thread_yield(void);
void thread_yield(bool force);
void thread_exit(void);
int32 thread_max_threads(void);