Fixed userland snooze() implementation, snooze_etc() is now also exported (as
required by the Be API). Removed all posix signal functionality from the kernel. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2579 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -98,7 +98,7 @@ SYSCALL4(sys_spawn_thread, 35)
|
||||
SYSCALL1(sys_kill_thread, 36)
|
||||
SYSCALL1(sys_suspend_thread, 37)
|
||||
SYSCALL1(sys_resume_thread, 38)
|
||||
SYSCALL3(sys_snooze_until, 17)
|
||||
SYSCALL4(sys_snooze_etc, 17)
|
||||
SYSCALL4(send_data, 94)
|
||||
SYSCALL3(receive_data, 95)
|
||||
SYSCALL1(has_data, 96)
|
||||
|
||||
@@ -133,16 +133,23 @@ has_data(thread_id thread)
|
||||
*/
|
||||
|
||||
status_t
|
||||
snooze(bigtime_t microseconds)
|
||||
snooze_etc(bigtime_t timeout, int timeBase, uint32 flags)
|
||||
{
|
||||
return sys_snooze_until(sys_system_time() + microseconds, B_SYSTEM_TIMEBASE);
|
||||
return sys_snooze_etc(timeout, timeBase, flags);
|
||||
}
|
||||
|
||||
|
||||
status_t
|
||||
snooze_until(bigtime_t time, int timeBase)
|
||||
snooze(bigtime_t timeout)
|
||||
{
|
||||
return sys_snooze_until(time, timeBase);
|
||||
return snooze_etc(timeout, B_SYSTEM_TIMEBASE, B_RELATIVE_TIMEOUT);
|
||||
}
|
||||
|
||||
|
||||
status_t
|
||||
snooze_until(bigtime_t timeout, int timeBase)
|
||||
{
|
||||
return snooze_etc(timeout, timeBase, B_ABSOLUTE_TIMEOUT);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user