Rev | Line | |
---|
[9] | 1 | #include "syslib.h"
|
---|
| 2 |
|
---|
| 3 | /*===========================================================================*
|
---|
| 4 | * sys_setalarm *
|
---|
| 5 | *===========================================================================*/
|
---|
| 6 | PUBLIC int sys_setalarm(exp_time, abs_time)
|
---|
| 7 | clock_t exp_time; /* expiration time for the alarm */
|
---|
| 8 | int abs_time; /* use absolute or relative expiration time */
|
---|
| 9 | {
|
---|
| 10 | /* Ask the SYSTEM schedule a synchronous alarm for the caller. The process
|
---|
| 11 | * number can be SELF if the caller doesn't know its process number.
|
---|
| 12 | */
|
---|
| 13 | message m;
|
---|
| 14 | m.ALRM_EXP_TIME = exp_time; /* the expiration time */
|
---|
| 15 | m.ALRM_ABS_TIME = abs_time; /* time is absolute? */
|
---|
| 16 | return _taskcall(SYSTASK, SYS_SETALARM, &m);
|
---|
| 17 | }
|
---|
| 18 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.