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
ae568447
Commit
ae568447
authored
Mar 15, 2017
by
Jacek Caban
Committed by
Alexandre Julliard
Mar 20, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Use no_fd_queue_async for named pipe ends in server I/O mode.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
a8023d30
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
named_pipe.c
server/named_pipe.c
+12
-2
No files found.
server/named_pipe.c
View file @
ae568447
...
...
@@ -143,6 +143,9 @@ static const struct object_ops named_pipe_ops =
named_pipe_destroy
/* destroy */
};
/* common server and client pipe end functions */
static
void
pipe_end_queue_async
(
struct
fd
*
fd
,
struct
async
*
async
,
int
type
,
int
count
);
/* server end functions */
static
void
pipe_server_dump
(
struct
object
*
obj
,
int
verbose
);
static
struct
fd
*
pipe_server_get_fd
(
struct
object
*
obj
);
...
...
@@ -183,7 +186,7 @@ static const struct fd_ops pipe_server_fd_ops =
no_fd_write
,
/* write */
pipe_server_flush
,
/* flush */
pipe_server_ioctl
,
/* ioctl */
default_fd_queue_async
,
/* queue_async */
pipe_end_queue_async
,
/* queue_async */
default_fd_reselect_async
/* reselect_async */
};
...
...
@@ -226,7 +229,7 @@ static const struct fd_ops pipe_client_fd_ops =
no_fd_write
,
/* write */
pipe_client_flush
,
/* flush */
default_fd_ioctl
,
/* ioctl */
default_fd_queue_async
,
/* queue_async */
pipe_end_queue_async
,
/* queue_async */
default_fd_reselect_async
/* reselect_async */
};
...
...
@@ -611,6 +614,13 @@ static obj_handle_t pipe_client_flush( struct fd *fd, struct async *async, int b
return
0
;
}
static
void
pipe_end_queue_async
(
struct
fd
*
fd
,
struct
async
*
async
,
int
type
,
int
count
)
{
struct
pipe_end
*
pipe_end
=
get_fd_user
(
fd
);
if
(
use_server_io
(
pipe_end
))
no_fd_queue_async
(
fd
,
async
,
type
,
count
);
else
default_fd_queue_async
(
fd
,
async
,
type
,
count
);
}
static
inline
int
is_overlapped
(
unsigned
int
options
)
{
return
!
(
options
&
(
FILE_SYNCHRONOUS_IO_ALERT
|
FILE_SYNCHRONOUS_IO_NONALERT
));
...
...
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