]> rtime.felk.cvut.cz Git - can-usb1.git/blob - ulan/host/libs4c/ulut/ul_htimer.c
Initializing repo
[can-usb1.git] / ulan / host / libs4c / ulut / ul_htimer.c
1 /*******************************************************************
2   uLan Utilities Library - C library of basic reusable constructions
3
4   ul_htimer.c   - hierarchical timer for basic ul_htimer_t type
5
6   (C) Copyright 2003 by Pavel Pisa - Originator
7
8   The uLan utilities library can be used, copied and modified under
9   next licenses
10     - GPL - GNU General Public License
11     - LGPL - GNU Lesser General Public License
12     - MPL - Mozilla Public License
13     - and other licenses added by project originators
14   Code can be modified and re-distributed under any combination
15   of the above listed licenses. If contributor does not agree with
16   some of the licenses, he/she can delete appropriate line.
17   Warning, if you delete all lines, you are not allowed to
18   distribute source code and/or binaries utilizing code.
19   
20   See files COPYING and README for details.
21
22  *******************************************************************/
23
24 #include <string.h>
25 #include "ul_htimer.h"
26
27 UL_HTIMER_IMP(ul_htimer, ul_htimer_queue_t, ul_htimer_t, \
28               htim_queue, htim) 
29
30 void ul_htimer_run_expired(ul_htimer_queue_t *queue, ul_htim_time_t *pact_time)
31 {
32   ul_htimer_t *timer;
33   
34   while((timer=ul_htimer_cut_expired(queue, pact_time))){
35     UL_HTIMER_FNC_CALL(queue, timer, pact_time);
36   }
37 }
38