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
0157f768
Commit
0157f768
authored
Mar 11, 2015
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Allow device manager ioctls to run asynchronously.
parent
3535f6f4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
device.c
server/device.c
+3
-3
No files found.
server/device.c
View file @
0157f768
...
...
@@ -313,7 +313,7 @@ static obj_handle_t device_ioctl( struct fd *fd, ioctl_code_t code, const async_
{
struct
device
*
device
=
get_fd_user
(
fd
);
struct
ioctl_call
*
ioctl
;
obj_handle_t
handle
;
obj_handle_t
handle
=
0
;
if
(
!
device
->
manager
)
/* it has been deleted */
{
...
...
@@ -327,7 +327,7 @@ static obj_handle_t device_ioctl( struct fd *fd, ioctl_code_t code, const async_
ioctl
->
thread
=
(
struct
thread
*
)
grab_object
(
current
);
ioctl
->
user_arg
=
async_data
->
arg
;
if
(
!
(
handle
=
alloc_handle
(
current
->
process
,
ioctl
,
SYNCHRONIZE
,
0
)))
if
(
blocking
&&
!
(
handle
=
alloc_handle
(
current
->
process
,
ioctl
,
SYNCHRONIZE
,
0
)))
{
release_object
(
ioctl
);
return
0
;
...
...
@@ -335,7 +335,7 @@ static obj_handle_t device_ioctl( struct fd *fd, ioctl_code_t code, const async_
if
(
!
(
ioctl
->
async
=
fd_queue_async
(
device
->
fd
,
async_data
,
ASYNC_TYPE_WAIT
)))
{
close_handle
(
current
->
process
,
handle
);
if
(
handle
)
close_handle
(
current
->
process
,
handle
);
release_object
(
ioctl
);
return
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