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
217ae19d
Commit
217ae19d
authored
Jul 28, 2021
by
Paul Gofman
Committed by
Alexandre Julliard
Jul 28, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Decrement IO pending count in ioqueue_thread_proc().
Signed-off-by:
Paul Gofman
<
pgofman@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
90e1907d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
threadpool.c
dlls/ntdll/threadpool.c
+2
-1
No files found.
dlls/ntdll/threadpool.c
View file @
217ae19d
...
@@ -1536,6 +1536,8 @@ static void CALLBACK ioqueue_thread_proc( void *param )
...
@@ -1536,6 +1536,8 @@ static void CALLBACK ioqueue_thread_proc( void *param )
{
{
RtlEnterCriticalSection
(
&
io
->
pool
->
cs
);
RtlEnterCriticalSection
(
&
io
->
pool
->
cs
);
--
io
->
u
.
io
.
pending_count
;
if
(
!
array_reserve
((
void
**
)
&
io
->
u
.
io
.
completions
,
&
io
->
u
.
io
.
completion_max
,
if
(
!
array_reserve
((
void
**
)
&
io
->
u
.
io
.
completions
,
&
io
->
u
.
io
.
completion_max
,
io
->
u
.
io
.
completion_count
+
1
,
sizeof
(
*
io
->
u
.
io
.
completions
)))
io
->
u
.
io
.
completion_count
+
1
,
sizeof
(
*
io
->
u
.
io
.
completions
)))
{
{
...
@@ -2138,7 +2140,6 @@ static void tp_object_execute( struct threadpool_object *object, BOOL wait_threa
...
@@ -2138,7 +2140,6 @@ static void tp_object_execute( struct threadpool_object *object, BOOL wait_threa
{
{
assert
(
object
->
u
.
io
.
completion_count
);
assert
(
object
->
u
.
io
.
completion_count
);
completion
=
object
->
u
.
io
.
completions
[
--
object
->
u
.
io
.
completion_count
];
completion
=
object
->
u
.
io
.
completions
[
--
object
->
u
.
io
.
completion_count
];
object
->
u
.
io
.
pending_count
--
;
}
}
/* Leave critical section and do the actual callback. */
/* Leave critical section and do the actual callback. */
...
...
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