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
48151717
Commit
48151717
authored
May 06, 2015
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Make the APC callback optional in async calls.
parent
83e3a9c9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
9 deletions
+15
-9
async.c
server/async.c
+15
-9
No files found.
server/async.c
View file @
48151717
...
...
@@ -145,8 +145,6 @@ static void async_queue_destroy( struct object *obj )
/* notifies client thread of new status of its async request */
void
async_terminate
(
struct
async
*
async
,
unsigned
int
status
)
{
apc_call_t
data
;
assert
(
status
!=
STATUS_PENDING
);
if
(
async
->
status
!=
STATUS_PENDING
)
...
...
@@ -156,14 +154,22 @@ void async_terminate( struct async *async, unsigned int status )
return
;
}
memset
(
&
data
,
0
,
sizeof
(
data
)
);
data
.
type
=
APC_ASYNC_IO
;
data
.
async_io
.
func
=
async
->
data
.
callback
;
data
.
async_io
.
user
=
async
->
data
.
arg
;
data
.
async_io
.
sb
=
async
->
data
.
iosb
;
data
.
async_io
.
status
=
status
;
thread_queue_apc
(
async
->
thread
,
&
async
->
obj
,
&
data
);
async
->
status
=
status
;
if
(
async
->
data
.
callback
)
{
apc_call_t
data
;
memset
(
&
data
,
0
,
sizeof
(
data
)
);
data
.
type
=
APC_ASYNC_IO
;
data
.
async_io
.
func
=
async
->
data
.
callback
;
data
.
async_io
.
user
=
async
->
data
.
arg
;
data
.
async_io
.
sb
=
async
->
data
.
iosb
;
data
.
async_io
.
status
=
status
;
thread_queue_apc
(
async
->
thread
,
&
async
->
obj
,
&
data
);
}
else
async_set_result
(
&
async
->
obj
,
STATUS_SUCCESS
,
0
,
0
,
0
);
async_reselect
(
async
);
release_object
(
async
);
/* so that it gets destroyed when the async is done */
}
...
...
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