Subversion Repositories Kolibri OS

Rev

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

Rev 2120 Rev 2122
Line 71... Line 71...
71
; This function informs the kernel that a media has been inserted, removed or
71
; This function informs the kernel that a media has been inserted, removed or
72
; changed. 'newstate' should be zero if currently there is no media inserted
72
; changed. 'newstate' should be zero if currently there is no media inserted
73
; and nonzero in the other case. This function must not be called with nonzero
73
; and nonzero in the other case. This function must not be called with nonzero
74
; 'newstate' from any of callbacks. This function must not be called if another
74
; 'newstate' from any of callbacks. This function must not be called if another
75
; call to this function is active.
75
; call to this function is active.
-
 
76
 
-
 
77
=== Timers ===
-
 
78
Timers allow to schedule a function call to some time in the future, once
-
 
79
or periodically. A timer function can do anything, including adding/removing
-
 
80
other timers and itself, but it should not run time-consuming tasks, since that
-
 
81
would block the processing thread for a long time; for such tasks it is
-
 
82
recommended to create new thread.
-
 
83
 
-
 
84
void* TimerHS(unsigned int deltaStart, unsigned int interval,
-
 
85
              void* timerFunc, void* userData);
-
 
86
; Registers a timer which is activated in (deltaStart == 0 ? deltaStart :
-
 
87
; interval) 1/100ths of second starting from the current time. If interval
-
 
88
; is zero, this timer is automatically deleted when activated. Otherwise,
-
 
89
; this timer will be activated every (interval) 1/100ths of second from the
-
 
90
; first activation. Activated timer calls timerFunc(userData) as stdcall.
-
 
91
; Returned value: NULL = failed, otherwise = timer handle which can be passed
-
 
92
; to CancelTimerHS.
-
 
93
void CancelTimerHS(void* hTimer);
-
 
94
; Cancels previously registered timer.