Housekeeping changes and small bug-fixes:

Added new syscall for set_thread_priority().
Replaced the userland syscall snooze_until() with snooze_etc() (the latter
has to be exported to userland and realize snooze() and snooze_until()).
Cleaned the sources - scheduler functions now have the scheduler_ prefix.
Moved signal related stuff into ksignal.h (out of thread.h).
Replaced public kernel API with direct exports (i.e. resume_thread() instead
of thread_resume_thread()).
Removed the thread_create_XXX_thread*() calls, and replaced them with a
BeOS compatible set.
Made some fields of struct thread a bit prettier.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2569 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2003-01-27 02:54:21 +00:00
parent dc7fb22c07
commit a9731b41c1
5 changed files with 45 additions and 26 deletions
+2 -1
View File
@@ -26,7 +26,7 @@ enum {
SYSCALL_READ_PATH_STAT,
SYSCALL_WRITE_PATH_STAT,
SYSCALL_SYSTEM_TIME,
SYSCALL_SNOOZE_UNTIL,
SYSCALL_SNOOZE_ETC,
SYSCALL_SEM_CREATE,
SYSCALL_SEM_DELETE,
SYSCALL_SEM_ACQUIRE, /* 20 */
@@ -130,6 +130,7 @@ enum {
SYSCALL_START_WATCHING,
SYSCALL_STOP_WATCHING,
SYSCALL_STOP_NOTIFYING, /* 120 */
SYSCALL_SET_THREAD_PRIORITY,
};
int syscall_dispatcher(unsigned long call_num, void *arg_buffer, uint64 *call_ret);