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
7ecf84c4
Commit
7ecf84c4
authored
Nov 16, 2017
by
Zebediah Figura
Committed by
Alexandre Julliard
Nov 17, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Trace thread IDs in hexadecimal.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
4adfb1be
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
loader.c
dlls/kernel32/tests/loader.c
+8
-8
No files found.
dlls/kernel32/tests/loader.c
View file @
7ecf84c4
...
...
@@ -1523,7 +1523,7 @@ static DWORD WINAPI mutex_thread_proc(void *param)
wait_list
[
2
]
=
peb_lock_event
;
wait_list
[
3
]
=
heap_lock_event
;
trace
(
"%04
u
: mutex_thread_proc: starting
\n
"
,
GetCurrentThreadId
());
trace
(
"%04
x
: mutex_thread_proc: starting
\n
"
,
GetCurrentThreadId
());
while
(
1
)
{
ret
=
WaitForMultipleObjects
(
sizeof
(
wait_list
)
/
sizeof
(
wait_list
[
0
]),
wait_list
,
FALSE
,
50
);
...
...
@@ -1531,7 +1531,7 @@ static DWORD WINAPI mutex_thread_proc(void *param)
else
if
(
ret
==
WAIT_OBJECT_0
+
1
)
{
ULONG_PTR
loader_lock_magic
;
trace
(
"%04
u
: mutex_thread_proc: Entering loader lock
\n
"
,
GetCurrentThreadId
());
trace
(
"%04
x
: mutex_thread_proc: Entering loader lock
\n
"
,
GetCurrentThreadId
());
ret
=
pLdrLockLoaderLock
(
0
,
NULL
,
&
loader_lock_magic
);
ok
(
!
ret
,
"LdrLockLoaderLock error %#x
\n
"
,
ret
);
inside_loader_lock
++
;
...
...
@@ -1539,21 +1539,21 @@ static DWORD WINAPI mutex_thread_proc(void *param)
}
else
if
(
ret
==
WAIT_OBJECT_0
+
2
)
{
trace
(
"%04
u
: mutex_thread_proc: Entering PEB lock
\n
"
,
GetCurrentThreadId
());
trace
(
"%04
x
: mutex_thread_proc: Entering PEB lock
\n
"
,
GetCurrentThreadId
());
pRtlAcquirePebLock
();
inside_peb_lock
++
;
SetEvent
(
ack_event
);
}
else
if
(
ret
==
WAIT_OBJECT_0
+
3
)
{
trace
(
"%04
u
: mutex_thread_proc: Entering heap lock
\n
"
,
GetCurrentThreadId
());
trace
(
"%04
x
: mutex_thread_proc: Entering heap lock
\n
"
,
GetCurrentThreadId
());
HeapLock
(
GetProcessHeap
());
inside_heap_lock
++
;
SetEvent
(
ack_event
);
}
}
trace
(
"%04
u
: mutex_thread_proc: exiting
\n
"
,
GetCurrentThreadId
());
trace
(
"%04
x
: mutex_thread_proc: exiting
\n
"
,
GetCurrentThreadId
());
return
196
;
}
...
...
@@ -1569,11 +1569,11 @@ static DWORD WINAPI semaphore_thread_proc(void *param)
while
(
1
)
{
if
(
winetest_debug
>
1
)
trace
(
"%04
u
: semaphore_thread_proc: still alive
\n
"
,
GetCurrentThreadId
());
trace
(
"%04
x
: semaphore_thread_proc: still alive
\n
"
,
GetCurrentThreadId
());
if
(
WaitForSingleObject
(
stop_event
,
50
)
!=
WAIT_TIMEOUT
)
break
;
}
trace
(
"%04
u
: semaphore_thread_proc: exiting
\n
"
,
GetCurrentThreadId
());
trace
(
"%04
x
: semaphore_thread_proc: exiting
\n
"
,
GetCurrentThreadId
());
return
196
;
}
...
...
@@ -1585,7 +1585,7 @@ static DWORD WINAPI noop_thread_proc(void *param)
InterlockedIncrement
(
noop_thread_started
);
}
trace
(
"%04
u
: noop_thread_proc: exiting
\n
"
,
GetCurrentThreadId
());
trace
(
"%04
x
: noop_thread_proc: exiting
\n
"
,
GetCurrentThreadId
());
return
195
;
}
...
...
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