Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
14d04b60
Commit
14d04b60
authored
Apr 03, 2003
by
Eric Pouech
Committed by
Alexandre Julliard
Apr 03, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
No longer call WaitFor*Object* from ntdll (but NtWait*Object*).
parent
ef141f72
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
25 additions
and
11 deletions
+25
-11
critsection.c
dlls/ntdll/critsection.c
+11
-6
rtl.c
dlls/ntdll/rtl.c
+2
-2
signal_i386.c
dlls/ntdll/signal_i386.c
+4
-1
signal_powerpc.c
dlls/ntdll/signal_powerpc.c
+4
-1
signal_sparc.c
dlls/ntdll/signal_sparc.c
+4
-1
No files found.
dlls/ntdll/critsection.c
View file @
14d04b60
...
...
@@ -146,23 +146,28 @@ NTSTATUS WINAPI RtlpWaitForCriticalSection( RTL_CRITICAL_SECTION *crit )
{
EXCEPTION_RECORD
rec
;
HANDLE
sem
=
get_semaphore
(
crit
);
LARGE_INTEGER
time
;
DWORD
status
;
DWORD
res
=
WaitForSingleObject
(
sem
,
5000L
);
if
(
res
==
WAIT_TIMEOUT
)
time
.
QuadPart
=
-
5000
*
10000
;
/* 5 seconds */
status
=
NtWaitForSingleObject
(
sem
,
FALSE
,
&
time
);
if
(
status
==
WAIT_TIMEOUT
)
{
const
char
*
name
=
(
char
*
)
crit
->
DebugInfo
;
if
(
!
name
)
name
=
"?"
;
ERR
(
"section %p %s wait timed out, retrying (60 sec) tid=%04lx
\n
"
,
crit
,
debugstr_a
(
name
),
GetCurrentThreadId
()
);
res
=
WaitForSingleObject
(
sem
,
60000L
);
if
(
res
==
WAIT_TIMEOUT
&&
TRACE_ON
(
relay
)
)
time
.
QuadPart
=
-
60000
*
10000
;
status
=
NtWaitForSingleObject
(
sem
,
FALSE
,
&
time
);
if
(
status
==
WAIT_TIMEOUT
&&
TRACE_ON
(
relay
)
)
{
ERR
(
"section %p %s wait timed out, retrying (5 min) tid=%04lx
\n
"
,
crit
,
debugstr_a
(
name
),
GetCurrentThreadId
()
);
res
=
WaitForSingleObject
(
sem
,
300000L
);
time
.
QuadPart
=
-
300000
*
(
ULONGLONG
)
10000
;
status
=
NtWaitForSingleObject
(
sem
,
FALSE
,
&
time
);
}
}
if
(
re
s
==
STATUS_WAIT_0
)
return
STATUS_SUCCESS
;
if
(
statu
s
==
STATUS_WAIT_0
)
return
STATUS_SUCCESS
;
/* Throw exception only for Wine internal locks */
if
(
!
crit
->
DebugInfo
)
continue
;
...
...
dlls/ntdll/rtl.c
View file @
14d04b60
...
...
@@ -166,7 +166,7 @@ wait:
rwl
->
uExclusiveWaiters
++
;
RtlLeaveCriticalSection
(
&
rwl
->
rtlCS
);
if
(
WaitForSingleObject
(
rwl
->
hExclusiveReleaseSemaphore
,
INFINITE
)
==
WAIT_FAILED
)
if
(
NtWaitForSingleObject
(
rwl
->
hExclusiveReleaseSemaphore
,
FALSE
,
NULL
)
==
WAIT_FAILED
)
goto
done
;
goto
start
;
/* restart the acquisition to avoid deadlocks */
}
...
...
@@ -206,7 +206,7 @@ start:
{
rwl
->
uSharedWaiters
++
;
RtlLeaveCriticalSection
(
&
rwl
->
rtlCS
);
if
(
(
dwWait
=
WaitForSingleObject
(
rwl
->
hSharedReleaseSemaphore
,
INFINITE
))
==
WAIT_FAILED
)
if
(
(
dwWait
=
NtWaitForSingleObject
(
rwl
->
hSharedReleaseSemaphore
,
FALSE
,
NULL
))
==
WAIT_FAILED
)
goto
done
;
goto
start
;
}
...
...
dlls/ntdll/signal_i386.c
View file @
14d04b60
...
...
@@ -1125,9 +1125,12 @@ static HANDLER_DEF(term_handler)
*/
static
HANDLER_DEF
(
usr1_handler
)
{
LARGE_INTEGER
timeout
;
init_handler
(
HANDLER_CONTEXT
);
/* wait with 0 timeout, will only return once the thread is no longer suspended */
WaitForMultipleObjectsEx
(
0
,
NULL
,
FALSE
,
0
,
FALSE
);
timeout
.
QuadPart
=
0
;
NtWaitForMultipleObjects
(
0
,
NULL
,
FALSE
,
FALSE
,
&
timeout
);
}
...
...
dlls/ntdll/signal_powerpc.c
View file @
14d04b60
...
...
@@ -409,8 +409,11 @@ static HANDLER_DEF(term_handler)
*/
static
HANDLER_DEF
(
usr1_handler
)
{
LARGE_INTEGER
timeout
;
/* wait with 0 timeout, will only return once the thread is no longer suspended */
WaitForMultipleObjectsEx
(
0
,
NULL
,
FALSE
,
0
,
FALSE
);
timeout
.
QuadPart
=
0
;
NtWaitForMultipleObjects
(
0
,
NULL
,
FALSE
,
FALSE
,
&
timeout
);
}
...
...
dlls/ntdll/signal_sparc.c
View file @
14d04b60
...
...
@@ -384,8 +384,11 @@ static HANDLER_DEF(term_handler)
*/
static
HANDLER_DEF
(
usr1_handler
)
{
LARGE_INTEGER
timeout
;
/* wait with 0 timeout, will only return once the thread is no longer suspended */
WaitForMultipleObjectsEx
(
0
,
NULL
,
FALSE
,
0
,
FALSE
);
timeout
.
QuadPart
=
0
;
NtWaitForMultipleObjects
(
0
,
NULL
,
FALSE
,
FALSE
,
&
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