Subversion Repositories HelenOS

Rev

Rev 2787 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2787 Rev 2925
Line 93... Line 93...
93
 * Insert timeout handler f (with argument arg)
93
 * Insert timeout handler f (with argument arg)
94
 * to timeout list and make it execute in
94
 * to timeout list and make it execute in
95
 * time microseconds (or slightly more).
95
 * time microseconds (or slightly more).
96
 *
96
 *
97
 * @param t    Timeout structure.
97
 * @param t     Timeout structure.
98
 * @param time Number of usec in the future to execute
98
 * @param time      Number of usec in the future to execute the handler.
99
 *             the handler.
-
 
100
 * @param f    Timeout handler function.
99
 * @param f     Timeout handler function.
101
 * @param arg  Timeout handler argument.
100
 * @param arg       Timeout handler argument.
102
 *
101
 *
103
 */
102
 */
-
 
103
void
104
void timeout_register(timeout_t *t, uint64_t time, timeout_handler_t f, void *arg)
104
timeout_register(timeout_t *t, uint64_t time, timeout_handler_t f, void *arg)
105
{
105
{
106
    timeout_t *hlp = NULL;
106
    timeout_t *hlp = NULL;
107
    link_t *l, *m;
107
    link_t *l, *m;
108
    ipl_t ipl;
108
    ipl_t ipl;
109
    uint64_t sum;
109
    uint64_t sum;
Line 165... Line 165...
165
 *
165
 *
166
 * Remove timeout from timeout list.
166
 * Remove timeout from timeout list.
167
 *
167
 *
168
 * @param t Timeout to unregister.
168
 * @param t     Timeout to unregister.
169
 *
169
 *
170
 * @return true on success, false on failure.
170
 * @return      True on success, false on failure.
171
 */
171
 */
172
bool timeout_unregister(timeout_t *t)
172
bool timeout_unregister(timeout_t *t)
173
{
173
{
174
    timeout_t *hlp;
174
    timeout_t *hlp;
175
    link_t *l;
175
    link_t *l;