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
91b398c3
Commit
91b398c3
authored
Jun 25, 2005
by
Mike McCormack
Committed by
Alexandre Julliard
Jun 25, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- use STATUS_TIMEOUT instead of WAIT_TIMEOUT
- add RTL_ to one more CRITICAL_SECTION_DEBUG
parent
6c45b626
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
critsection.c
dlls/ntdll/critsection.c
+3
-3
No files found.
dlls/ntdll/critsection.c
View file @
91b398c3
...
@@ -117,7 +117,7 @@ NTSTATUS WINAPI RtlInitializeCriticalSectionAndSpinCount( RTL_CRITICAL_SECTION *
...
@@ -117,7 +117,7 @@ NTSTATUS WINAPI RtlInitializeCriticalSectionAndSpinCount( RTL_CRITICAL_SECTION *
if
(
!
GetProcessHeap
())
crit
->
DebugInfo
=
NULL
;
if
(
!
GetProcessHeap
())
crit
->
DebugInfo
=
NULL
;
else
else
{
{
crit
->
DebugInfo
=
RtlAllocateHeap
(
GetProcessHeap
(),
0
,
sizeof
(
CRITICAL_SECTION_DEBUG
));
crit
->
DebugInfo
=
RtlAllocateHeap
(
GetProcessHeap
(),
0
,
sizeof
(
RTL_
CRITICAL_SECTION_DEBUG
));
if
(
crit
->
DebugInfo
)
if
(
crit
->
DebugInfo
)
{
{
crit
->
DebugInfo
->
Type
=
0
;
crit
->
DebugInfo
->
Type
=
0
;
...
@@ -234,7 +234,7 @@ NTSTATUS WINAPI RtlpWaitForCriticalSection( RTL_CRITICAL_SECTION *crit )
...
@@ -234,7 +234,7 @@ NTSTATUS WINAPI RtlpWaitForCriticalSection( RTL_CRITICAL_SECTION *crit )
time
.
QuadPart
=
-
5000
*
10000
;
/* 5 seconds */
time
.
QuadPart
=
-
5000
*
10000
;
/* 5 seconds */
status
=
NtWaitForSingleObject
(
sem
,
FALSE
,
&
time
);
status
=
NtWaitForSingleObject
(
sem
,
FALSE
,
&
time
);
if
(
status
==
WAIT
_TIMEOUT
)
if
(
status
==
STATUS
_TIMEOUT
)
{
{
const
char
*
name
=
NULL
;
const
char
*
name
=
NULL
;
if
(
crit
->
DebugInfo
)
name
=
(
char
*
)
crit
->
DebugInfo
->
Spare
[
1
];
if
(
crit
->
DebugInfo
)
name
=
(
char
*
)
crit
->
DebugInfo
->
Spare
[
1
];
...
@@ -243,7 +243,7 @@ NTSTATUS WINAPI RtlpWaitForCriticalSection( RTL_CRITICAL_SECTION *crit )
...
@@ -243,7 +243,7 @@ NTSTATUS WINAPI RtlpWaitForCriticalSection( RTL_CRITICAL_SECTION *crit )
crit
,
debugstr_a
(
name
),
GetCurrentThreadId
(),
(
DWORD
)
crit
->
OwningThread
);
crit
,
debugstr_a
(
name
),
GetCurrentThreadId
(),
(
DWORD
)
crit
->
OwningThread
);
time
.
QuadPart
=
-
60000
*
10000
;
time
.
QuadPart
=
-
60000
*
10000
;
status
=
NtWaitForSingleObject
(
sem
,
FALSE
,
&
time
);
status
=
NtWaitForSingleObject
(
sem
,
FALSE
,
&
time
);
if
(
status
==
WAIT
_TIMEOUT
&&
TRACE_ON
(
relay
)
)
if
(
status
==
STATUS
_TIMEOUT
&&
TRACE_ON
(
relay
)
)
{
{
ERR
(
"section %p %s wait timed out in thread %04lx, blocked by %04lx, retrying (5 min)
\n
"
,
ERR
(
"section %p %s wait timed out in thread %04lx, blocked by %04lx, retrying (5 min)
\n
"
,
crit
,
debugstr_a
(
name
),
GetCurrentThreadId
(),
(
DWORD
)
crit
->
OwningThread
);
crit
,
debugstr_a
(
name
),
GetCurrentThreadId
(),
(
DWORD
)
crit
->
OwningThread
);
...
...
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