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
f871f2d5
Commit
f871f2d5
authored
Oct 23, 2002
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Store thread id instead of queue handle in timer structure.
parent
d8bbcb2f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
9 deletions
+9
-9
user_main.c
dlls/user/user_main.c
+1
-1
message.h
include/message.h
+1
-1
timer.c
windows/timer.c
+7
-7
No files found.
dlls/user/user_main.c
View file @
f871f2d5
...
...
@@ -293,7 +293,7 @@ static void thread_detach(void)
if
(
hQueue
)
{
TIMER_Remove
QueueTimers
(
hQueue
);
TIMER_Remove
ThreadTimers
(
);
HOOK_FreeQueueHooks
();
WIN_DestroyThreadWindows
(
GetDesktopWindow
()
);
QUEUE_DeleteMsgQueue
();
...
...
include/message.h
View file @
f871f2d5
...
...
@@ -36,7 +36,7 @@ extern BOOL MSG_peek_message( MSG *msg, HWND hwnd, UINT first, UINT last, int fl
/* timer.c */
extern
void
TIMER_RemoveWindowTimers
(
HWND
hwnd
);
extern
void
TIMER_Remove
QueueTimers
(
HQUEUE16
hqueue
);
extern
void
TIMER_Remove
ThreadTimers
(
void
);
extern
BOOL
TIMER_IsTimerValid
(
HWND
hwnd
,
UINT
id
,
HWINDOWPROC
hProc
);
#endif
/* __WINE_MESSAGE_H */
windows/timer.c
View file @
f871f2d5
...
...
@@ -36,8 +36,8 @@ WINE_DEFAULT_DEBUG_CHANNEL(timer);
typedef
struct
tagTIMER
{
HWND
hwnd
;
HQUEUE16
hq
;
UINT
16
msg
;
/* WM_TIMER or WM_SYSTIMER */
DWORD
thread
;
UINT
msg
;
/* WM_TIMER or WM_SYSTIMER */
UINT
id
;
UINT
timeout
;
HWINDOWPROC
proc
;
...
...
@@ -89,11 +89,11 @@ void TIMER_RemoveWindowTimers( HWND hwnd )
/***********************************************************************
* TIMER_Remove
Queue
Timers
* TIMER_Remove
Thread
Timers
*
* Remove all timers for
a given queue
.
* Remove all timers for
the current thread
.
*/
void
TIMER_Remove
QueueTimers
(
HQUEUE16
hqueue
)
void
TIMER_Remove
ThreadTimers
(
void
)
{
int
i
;
TIMER
*
pTimer
;
...
...
@@ -101,7 +101,7 @@ void TIMER_RemoveQueueTimers( HQUEUE16 hqueue )
EnterCriticalSection
(
&
csTimer
);
for
(
i
=
NB_TIMERS
,
pTimer
=
TimersArray
;
i
>
0
;
i
--
,
pTimer
++
)
if
((
pTimer
->
hq
==
hqueue
)
&&
pTimer
->
timeout
)
if
((
pTimer
->
thread
==
GetCurrentThreadId
()
)
&&
pTimer
->
timeout
)
TIMER_ClearTimer
(
pTimer
);
LeaveCriticalSection
(
&
csTimer
);
...
...
@@ -175,7 +175,7 @@ static UINT TIMER_SetTimer( HWND hwnd, UINT id, UINT timeout,
/* Add the timer */
pTimer
->
hwnd
=
hwnd
;
pTimer
->
hq
=
InitThreadInput16
(
0
,
0
);
pTimer
->
thread
=
GetCurrentThreadId
(
);
pTimer
->
msg
=
sys
?
WM_SYSTIMER
:
WM_TIMER
;
pTimer
->
id
=
id
;
pTimer
->
timeout
=
timeout
;
...
...
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