* Cleaned up KernelExport.h completely, removed deprecated and non implemented
API, uses the _PRINTFLIKE macro where appropriate. * Got rid of the "qent" structure, struct timer now contains everything we need. This makes the affected code in sem.cpp, signal.cpp, and timer.c much cleaner, and resolves a few TODOs. * Minor cleanup in vfs.cpp. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24871 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -785,7 +785,7 @@ set_alarm(bigtime_t time, uint32 mode)
|
||||
TRACE(("set_alarm: thread = %p\n", thread));
|
||||
|
||||
if (thread->alarm.period)
|
||||
remainingTime = (bigtime_t)thread->alarm.entry.key - system_time();
|
||||
remainingTime = (bigtime_t)thread->alarm.schedule_time - system_time();
|
||||
|
||||
cancel_timer(&thread->alarm);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user