a9731b41c1
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
20 lines
579 B
C
20 lines
579 B
C
/*
|
|
** Copyright 2003, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
|
|
** Distributed under the terms of the OpenBeOS License.
|
|
*/
|
|
#ifndef _KERNEL_SIGNAL_H
|
|
#define _KERNEL_SIGNAL_H
|
|
|
|
#include <signal.h>
|
|
|
|
#define BLOCKABLE_SIGS (~((1L << (SIGKILL - 1)) | (1L << (SIGSTOP - 1))))
|
|
|
|
extern int handle_signals(struct thread *t, int state);
|
|
|
|
|
|
extern int user_send_signal(pid_t tid, uint sig);
|
|
extern int user_sigaction(int sig, const struct sigaction *act, struct sigaction *oact);
|
|
extern bigtime_t user_set_alarm(bigtime_t time, uint32 mode);
|
|
|
|
#endif /* _KERNEL_SIGNAL_H */
|