Rev 2130 | Rev 2465 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2130 | Rev 2434 | ||
---|---|---|---|
Line 3... | Line 3... | ||
3 | ;; Copyright (C) KolibriOS team 2011. All rights reserved. ;; |
3 | ;; Copyright (C) KolibriOS team 2011. All rights reserved. ;; |
4 | ;; Distributed under terms of the GNU General Public License ;; |
4 | ;; Distributed under terms of the GNU General Public License ;; |
5 | ;; ;; |
5 | ;; ;; |
6 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
6 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
Line 7... | Line 7... | ||
7 | 7 | ||
Line 8... | Line 8... | ||
8 | $Revision: 2122 $ |
8 | $Revision: 2381 $ |
9 | 9 | ||
Line 10... | Line 10... | ||
10 | ; Simple implementation of timers. All timers are organized in a double-linked |
10 | ; Simple implementation of timers. All timers are organized in a double-linked |
11 | ; list, and the OS loop after every timer tick processes the list. |
11 | ; list, and the OS loop after every timer tick processes the list. |
12 | 12 | ||
13 | ; This structure describes a timer for the kernel. |
13 | ; This structure describes a timer for the kernel. |
14 | struct TIMER |
14 | struct TIMER |
15 | .Next dd ? |
15 | Next dd ? |
16 | .Prev dd ? |
16 | Prev dd ? |
17 | ; These fields organize a double-linked list of all timers. |
17 | ; These fields organize a double-linked list of all timers. |
18 | .TimerFunc dd ? |
18 | TimerFunc dd ? |
19 | ; Function to be called when the timer is activated. |
19 | ; Function to be called when the timer is activated. |
20 | .UserData dd ? |
20 | UserData dd ? |
21 | ; The value that is passed as is to .TimerFunc. |
21 | ; The value that is passed as is to .TimerFunc. |
22 | .Time dd ? |
22 | Time dd ? |
23 | ; Time at which the timer should be activated. |
23 | ; Time at which the timer should be activated. |
Line 24... | Line 24... | ||
24 | .Interval dd ? |
24 | Interval dd ? |
25 | ; Interval between activations of the timer, in 0.01s. |
25 | ; Interval between activations of the timer, in 0.01s. |