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
386c4bcf
Commit
386c4bcf
authored
Sep 03, 2021
by
Zebediah Figura
Committed by
Alexandre Julliard
Sep 09, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Use a separate field to track whether an async is blocking.
Signed-off-by:
Zebediah Figura
<
zfigura@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
0f7c784f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
async.c
server/async.c
+5
-1
No files found.
server/async.c
View file @
386c4bcf
...
...
@@ -55,6 +55,7 @@ struct async
unsigned
int
terminated
:
1
;
/* async has been terminated */
unsigned
int
canceled
:
1
;
/* have we already queued cancellation for this async? */
unsigned
int
unknown_status
:
1
;
/* initial status is not known yet */
unsigned
int
blocking
:
1
;
/* async is blocking */
struct
completion
*
completion
;
/* completion associated with fd */
apc_param_t
comp_key
;
/* completion key associated with fd */
unsigned
int
comp_flags
;
/* completion flags */
...
...
@@ -262,6 +263,7 @@ struct async *create_async( struct fd *fd, struct thread *thread, const async_da
async
->
terminated
=
0
;
async
->
canceled
=
0
;
async
->
unknown_status
=
0
;
async
->
blocking
=
!
is_fd_overlapped
(
fd
);
async
->
completion
=
fd_get_completion
(
fd
,
&
async
->
comp_key
);
async
->
comp_flags
=
0
;
async
->
completion_callback
=
NULL
;
...
...
@@ -300,6 +302,8 @@ void set_async_pending( struct async *async, int signal )
/* return async object status and wait handle to client */
obj_handle_t
async_handoff
(
struct
async
*
async
,
data_size_t
*
result
,
int
force_blocking
)
{
async
->
blocking
=
force_blocking
||
async
->
blocking
;
if
(
async
->
unknown_status
)
{
/* even the initial status is not known yet */
...
...
@@ -338,7 +342,7 @@ obj_handle_t async_handoff( struct async *async, data_size_t *result, int force_
{
async
->
direct_result
=
0
;
async
->
pending
=
1
;
if
(
!
force_blocking
&&
async
->
fd
&&
is_fd_overlapped
(
async
->
fd
)
)
if
(
!
async
->
blocking
)
{
close_handle
(
async
->
thread
->
process
,
async
->
wait_handle
);
async
->
wait_handle
=
0
;
...
...
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