|
From: <kr_...@us...> - 2003-03-26 02:20:00
|
Update of /cvsroot/htoolkit/port/src/include
In directory sc8-pr-cvs1:/tmp/cvs-serv5945/port/src/include
Modified Files:
Timer.h Types.h
Log Message:
Efficient implementation for timers
Index: Timer.h
===================================================================
RCS file: /cvsroot/htoolkit/port/src/include/Timer.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** Timer.h 21 Jan 2003 22:01:17 -0000 1.1
--- Timer.h 26 Mar 2003 02:19:57 -0000 1.2
***************
*** 6,9 ****
--- 6,13 ----
TimerHandle osCreateTimer(int msecs);
void osDestroyTimer(TimerHandle timer);
+ void osSetTimerInterval(TimerHandle timer, int msecs);
+ int osGetTimerInterval(TimerHandle timer);
+ void osEnableTimer(TimerHandle timer, BOOL enabled);
+ BOOL osIsTimerEnabled(TimerHandle timer);
#endif
Index: Types.h
===================================================================
RCS file: /cvsroot/htoolkit/port/src/include/Types.h,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** Types.h 10 Feb 2003 22:42:11 -0000 1.5
--- Types.h 26 Mar 2003 02:19:57 -0000 1.6
***************
*** 17,21 ****
typedef HWND WindowHandle;
! typedef void* TimerHandle;
typedef struct
--- 17,27 ----
typedef HWND WindowHandle;
!
! typedef struct
! {
! UINT_PTR id;
! int interval;
! BOOL enabled;
! } *TimerHandle;
typedef struct
***************
*** 61,65 ****
typedef GtkWidget *WindowHandle;
! typedef guint *TimerHandle;
typedef struct
--- 67,77 ----
typedef GtkWidget *WindowHandle;
!
! typedef struct
! {
! guint id;
! int interval;
! BOOL enabled;
! } *TimerHandle;
typedef struct
|