annotate osdep/timer.h @ 24576:6704a924d4aa

According to MSDN a thread must call CoUninitialize once for each successful call it has made to CoInitialize or CoInitializeEx, including any call that returns S_FALSE. Only the CoUninitialize call corresponding to the CoInitialize or CoInitializeEx call that initialized the library can close it. patch by Gianluigi Tiesi, mplayer netfarm it
author diego
date Sun, 23 Sep 2007 20:37:33 +0000
parents 88bed2131f19
children 9e739bdb049c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
23934
88bed2131f19 Identifiers starting with underscores are reserved.
diego
parents: 17566
diff changeset
1 #ifndef MPLAYER_TIMER_H
88bed2131f19 Identifiers starting with underscores are reserved.
diego
parents: 17566
diff changeset
2 #define MPLAYER_TIMER_H
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
3
12954
f9755d9c479a Native darwin timer update.
wight
parents: 9380
diff changeset
4 extern const char *timer_name;
f9755d9c479a Native darwin timer update.
wight
parents: 9380
diff changeset
5
17566
f580a7755ac5 Patch by Stefan Huehner / stefan % huehner ! org \
rathann
parents: 12954
diff changeset
6 void InitTimer(void);
f580a7755ac5 Patch by Stefan Huehner / stefan % huehner ! org \
rathann
parents: 12954
diff changeset
7 unsigned int GetTimer(void);
f580a7755ac5 Patch by Stefan Huehner / stefan % huehner ! org \
rathann
parents: 12954
diff changeset
8 unsigned int GetTimerMS(void);
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
9 //int uGetTimer();
17566
f580a7755ac5 Patch by Stefan Huehner / stefan % huehner ! org \
rathann
parents: 12954
diff changeset
10 float GetRelativeTime(void);
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
11
2266
c2ed1e5742ed sleep stuff moved to linux/timertimer-lx.c
arpi
parents: 99
diff changeset
12 int usec_sleep(int usec_delay);
c2ed1e5742ed sleep stuff moved to linux/timertimer-lx.c
arpi
parents: 99
diff changeset
13
4863
df50da00260a POSIX compatible timer's callback
nick
parents: 4385
diff changeset
14 /* timer's callback handling */
df50da00260a POSIX compatible timer's callback
nick
parents: 4385
diff changeset
15 typedef void timer_callback( void );
df50da00260a POSIX compatible timer's callback
nick
parents: 4385
diff changeset
16 extern unsigned set_timer_callback(unsigned ms,timer_callback func);
df50da00260a POSIX compatible timer's callback
nick
parents: 4385
diff changeset
17 extern void restore_timer(void);
df50da00260a POSIX compatible timer's callback
nick
parents: 4385
diff changeset
18
23934
88bed2131f19 Identifiers starting with underscores are reserved.
diego
parents: 17566
diff changeset
19 #endif /* MPLAYER_TIMER_H */