git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Kernel/vfs - Return matched flags from VFS_SelectNode
[tpg/acess2.git]
/
Tools
/
nativelib
/
time.c
diff --git
a/Tools/nativelib/time.c
b/Tools/nativelib/time.c
index
4eb7463
..
6f941f2
100644
(file)
--- a/
Tools/nativelib/time.c
+++ b/
Tools/nativelib/time.c
@@
-7,6
+7,7
@@
*/
#include <acess.h>
#include <timers.h>
*/
#include <acess.h>
#include <timers.h>
+#include <events.h>
// === CODE ===
tTimer *Time_AllocateTimer(tTimerCallback *Callback, void *Argument)
// === CODE ===
tTimer *Time_AllocateTimer(tTimerCallback *Callback, void *Argument)
@@
-19,6
+20,7
@@
void Time_ScheduleTimer(tTimer *Timer, int Delta)
if( !Timer )
{
// SIGALRM
if( !Timer )
{
// SIGALRM
+ Log_Warning("Time", "TODO: Alarm event in %i ms", Delta);
}
else
{
}
else
{
@@
-36,6
+38,17
@@
void Time_FreeTimer(tTimer *Timer)
}
}
+void Time_ScheduleEvent(int Delay)
+{
+ Log_Warning("Time", "TODO: EVENT_TIMER in %ims", Delay);
+}
+
+void Time_Delay(int Delay)
+{
+ Time_ScheduleEvent(Delay);
+ Threads_WaitEvents(THREAD_EVENT_TIMER);
+}
+
Sint64 now(void)
{
// TODO: Translate UNIX time into Acess time
Sint64 now(void)
{
// TODO: Translate UNIX time into Acess time
UCC
git Repository :: git.ucc.asn.au