Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
8c8237b7
Commit
8c8237b7
authored
May 10, 2000
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Specify the service thread timers in ms instead of us.
parent
246c3606
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
7 additions
and
8 deletions
+7
-8
animate.c
dlls/comctl32/animate.c
+1
-1
time.c
dlls/winmm/time.c
+1
-1
vga.c
graphics/vga.c
+2
-2
system.c
misc/system.c
+1
-1
services.c
scheduler/services.c
+0
-1
timer.c
windows/timer.c
+1
-1
event.c
windows/x11drv/event.c
+1
-1
No files found.
dlls/comctl32/animate.c
View file @
8c8237b7
...
...
@@ -242,7 +242,7 @@ static LRESULT ANIMATE_Play(HWND hWnd, WPARAM wParam, LPARAM lParam)
}
else
{
TRACE
(
"Using the service thread
\n
"
);
/* time is in s */
infoPtr
->
hService
=
SERVICE_AddTimer
(
infoPtr
->
mah
.
dwMicroSecPerFrame
,
infoPtr
->
hService
=
SERVICE_AddTimer
(
infoPtr
->
mah
.
dwMicroSecPerFrame
/
1000
,
ANIMATE_ServiceCallback
,
(
DWORD
)
infoPtr
);
}
...
...
dlls/winmm/time.c
View file @
8c8237b7
...
...
@@ -150,7 +150,7 @@ static LPWINE_MM_IDATA MULTIMEDIA_MMTimeStart(void)
iData
->
mmSysTimeMS
=
GetTickCount
();
iData
->
lpTimerList
=
NULL
;
/* 10ms seems a reasonable value ?? */
iData
->
hMMTimer
=
SERVICE_AddTimer
(
10
*
1000L
,
TIME_MMSysTimeCallback
,
(
DWORD
)
iData
);
iData
->
hMMTimer
=
SERVICE_AddTimer
(
10
,
TIME_MMSysTimeCallback
,
(
DWORD
)
iData
);
}
return
iData
;
...
...
graphics/vga.c
View file @
8c8237b7
...
...
@@ -82,7 +82,7 @@ int VGA_SetMode(unsigned Xres,unsigned Yres,unsigned Depth)
}
vga_refresh
=
0
;
/* poll every 20ms (50fps should provide adequate responsiveness) */
VGA_InstallTimer
(
20
000
);
VGA_InstallTimer
(
20
);
}
return
0
;
}
...
...
@@ -160,7 +160,7 @@ int VGA_SetAlphaMode(unsigned Xres,unsigned Yres)
if
(
lpddraw
)
VGA_Exit
();
/* the xterm is slow, so refresh only every 200ms (5fps) */
VGA_InstallTimer
(
200
000
);
VGA_InstallTimer
(
200
);
siz
.
X
=
Xres
;
siz
.
Y
=
Yres
;
...
...
misc/system.c
View file @
8c8237b7
...
...
@@ -57,7 +57,7 @@ static void CALLBACK SYSTEM_TimerTick( ULONG_PTR arg )
static
void
SYSTEM_StartTicks
(
void
)
{
if
(
SYS_Service
==
INVALID_HANDLE_VALUE
)
SYS_Service
=
SERVICE_AddTimer
(
SYS_TIMER_RATE
,
SYSTEM_TimerTick
,
0L
);
SYS_Service
=
SERVICE_AddTimer
(
(
SYS_TIMER_RATE
+
500
)
/
1000
,
SYSTEM_TimerTick
,
0L
);
}
...
...
scheduler/services.c
View file @
8c8237b7
...
...
@@ -201,7 +201,6 @@ HANDLE SERVICE_AddTimer( LONG rate,
handle
=
CreateWaitableTimerA
(
NULL
,
FALSE
,
NULL
);
if
(
!
handle
)
return
INVALID_HANDLE_VALUE
;
rate
=
(
rate
+
500
)
/
1000
;
/* us -> ms */
if
(
!
rate
)
rate
=
1
;
when
.
s
.
LowPart
=
when
.
s
.
HighPart
=
0
;
if
(
!
SetWaitableTimer
(
handle
,
&
when
,
rate
,
NULL
,
NULL
,
FALSE
))
...
...
windows/timer.c
View file @
8c8237b7
...
...
@@ -241,7 +241,7 @@ static UINT TIMER_SetTimer( HWND hwnd, UINT id, UINT timeout,
if
(
proc
)
WINPROC_SetProc
(
&
pTimer
->
proc
,
proc
,
type
,
WIN_PROC_TIMER
);
pTimer
->
expired
=
FALSE
;
pTimer
->
hService
=
SERVICE_AddTimer
(
max
(
timeout
*
1000L
,
SYS_TIMER_RATE
),
pTimer
->
hService
=
SERVICE_AddTimer
(
max
(
timeout
,
(
SYS_TIMER_RATE
+
500
)
/
1000
),
TIMER_CheckTimer
,
(
ULONG_PTR
)
pTimer
);
TRACE
(
"Timer added: %p, %04x, %04x, %04x, %08lx
\n
"
,
...
...
windows/x11drv/event.c
View file @
8c8237b7
...
...
@@ -167,7 +167,7 @@ BOOL X11DRV_EVENT_Init(void)
if
(
Options
.
synchronous
)
TSXSynchronize
(
display
,
True
);
else
SERVICE_AddTimer
(
200
000L
,
EVENT_Flush
,
0
);
SERVICE_AddTimer
(
200
,
EVENT_Flush
,
0
);
return
TRUE
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment