Changeset: 846b72e712c5 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=846b72e712c5
Modified Files:
        monetdb5/modules/kernel/alarm.c
        monetdb5/modules/kernel/alarm.mal
Branch: default
Log Message:

Cleanup documentation


diffs (100 lines):

diff --git a/monetdb5/modules/kernel/alarm.c b/monetdb5/modules/kernel/alarm.c
--- a/monetdb5/modules/kernel/alarm.c
+++ b/monetdb5/modules/kernel/alarm.c
@@ -47,7 +47,7 @@ alarm_export str ALARMepilogue(void *ret
 alarm_export str ALARMusec(lng *ret);
 alarm_export str ALARMsleep(void *res, int *secs);
 alarm_export str ALARMsetalarm(void *res, int *secs, str *action);
-alarm_export str ALARMtimers(bat *res);
+alarm_export str ALARMtimers(bat *res, bat *actions);
 alarm_export str ALARMctime(str *res);
 alarm_export str ALARMepoch(int *res);
 alarm_export str ALARMtime(int *res);
@@ -82,9 +82,8 @@ CLKsignal(int nr)
 
        (void) nr;
 
-       if (signal(SIGALRM, CLKsignal) == SIG_ERR) {
+       if (signal(SIGALRM, CLKsignal) == SIG_ERR) 
                GDKsyserror("CLKsignal: call failed\n");
-       }
 
        if (timerTop == 0) {
                return;
@@ -178,9 +177,10 @@ ALARMsetalarm(void *res, int *secs, str 
 }
 
 str
-ALARMtimers(bat *res)
+ALARMtimers(bat *res, bat *actions)
 {
        (void) res;             /* fool compiler */
+       (void) actions;         /* fool compiler */
        throw(MAL, "alarm.timers", PROGRAM_NYI);
 }
 
diff --git a/monetdb5/modules/kernel/alarm.mal 
b/monetdb5/modules/kernel/alarm.mal
--- a/monetdb5/modules/kernel/alarm.mal
+++ b/monetdb5/modules/kernel/alarm.mal
@@ -17,33 +17,41 @@
 
 module alarm;
 
-command sleep(secs:int):void
+command alarm.sleep{unsafe}(secs:int):void
 address ALARMsleep
-comment "sleep X secs";
-command alarm(secs:int, action:str):void
-address ALARMsetalarm
-comment "execute action in X secs";
-command timers{unsafe}() :bat[:str,:str]
-address ALARMtimers
-comment "give a list of all active timers";
-command usec{unsafe}() :lng
+comment "Sleep a few seconds";
+
+#command alarm.action(secs:int, action:str):void
+#address ALARMsetalarm
+#comment "Execute a MAL action after a few secs. NYI";
+
+#command alarm.timers{unsafe}() (time:bat[:oid,:str],action:bat[:oid,:str])
+#address ALARMtimers
+#comment "Give the list of all active timers. NYI";
+
+command alarm.usec{unsafe}() :lng
 address ALARMusec
-comment "return cpu microseconds info";
-command time{unsafe}() :int
+comment "Return time in microseconds.";
+
+command alarm.time{unsafe}() :int
 address ALARMtime
-comment "time in millisecs";
-command epoch{unsafe}() :int
+comment "Return time in milliseconds.";
+
+command alarm.epoch{unsafe}() :int
 address ALARMepoch
-comment "current time as unix epoch";
-command ctime{unsafe}() :str
+comment "Return the current time as UNIX epoch.";
+
+command alarm.ctime{unsafe}() :str
 address ALARMctime
-comment "current time as a string";
-command prelude():void
+comment "Return the current time as a C-time string.";
+
+command alarm.prelude():void
 address ALARMprelude
-comment "Initialize alarm module";
-command epilogue():void
+comment "Initialize alarm module.";
+
+command alarm.epilogue():void
 address ALARMepilogue
-comment "Finalize alarm module";
+comment "Finalize alarm module.";
 
 alarm.prelude();
 
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to