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
0b251c08
Commit
0b251c08
authored
Jul 27, 2010
by
Mike Kaplinskiy
Committed by
Alexandre Julliard
Jul 28, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Consume events triggered.
parent
10b6d6ba
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
12 deletions
+5
-12
sock.c
dlls/ws2_32/tests/sock.c
+0
-10
sock.c
server/sock.c
+5
-2
No files found.
dlls/ws2_32/tests/sock.c
View file @
0b251c08
...
...
@@ -3205,16 +3205,6 @@ static void test_events(int useMessages)
ok_event_seq
(
src
,
hEvent
,
empty_seq
,
NULL
,
0
);
}
/* wine gets a stale notifications because of the async ops, clear them.
* remove when sending messages during pending asyncs is fixed */
ret
=
send
(
dst
,
"2"
,
1
,
0
);
ok
(
ret
==
1
,
"Failed to send buffer %d err %d
\n
"
,
ret
,
GetLastError
());
ok_event_seq
(
src
,
hEvent
,
read_seq
,
NULL
,
0
);
ret
=
recv
(
src
,
buffer
,
1
,
0
);
ok
(
ret
==
1
,
"Failed to empty buffer: %d - %d
\n
"
,
ret
,
GetLastError
());
ok_event_seq
(
src
,
hEvent
,
empty_seq
,
NULL
,
0
);
/* Flood the send queue */
hThread
=
CreateThread
(
NULL
,
0
,
drain_socket_thread
,
&
dst
,
0
,
&
id
);
if
(
hThread
==
NULL
)
...
...
server/sock.c
View file @
0b251c08
...
...
@@ -295,7 +295,7 @@ static inline int sock_error( struct fd *fd )
return
optval
;
}
static
void
sock_dispatch_asyncs
(
struct
sock
*
sock
,
int
event
,
int
error
)
static
int
sock_dispatch_asyncs
(
struct
sock
*
sock
,
int
event
,
int
error
)
{
if
(
sock
->
flags
&
WSA_FLAG_OVERLAPPED
)
{
...
...
@@ -303,11 +303,13 @@ static void sock_dispatch_asyncs( struct sock *sock, int event, int error )
{
if
(
debug_level
)
fprintf
(
stderr
,
"activating read queue for socket %p
\n
"
,
sock
);
async_wake_up
(
sock
->
read_q
,
STATUS_ALERTED
);
event
&=
~
(
POLLIN
|
POLLPRI
);
}
if
(
event
&
POLLOUT
&&
async_waiting
(
sock
->
write_q
)
)
{
if
(
debug_level
)
fprintf
(
stderr
,
"activating write queue for socket %p
\n
"
,
sock
);
async_wake_up
(
sock
->
write_q
,
STATUS_ALERTED
);
event
&=
~
POLLOUT
;
}
if
(
event
&
(
POLLERR
|
POLLHUP
)
)
{
...
...
@@ -319,6 +321,7 @@ static void sock_dispatch_asyncs( struct sock *sock, int event, int error )
async_wake_up
(
sock
->
write_q
,
status
);
}
}
return
event
;
}
static
void
sock_dispatch_events
(
struct
sock
*
sock
,
int
prevstate
,
int
event
,
int
error
)
...
...
@@ -451,7 +454,7 @@ static void sock_poll_event( struct fd *fd, int event )
event
|=
POLLHUP
;
}
sock_dispatch_asyncs
(
sock
,
event
,
error
);
event
=
sock_dispatch_asyncs
(
sock
,
event
,
error
);
sock_dispatch_events
(
sock
,
prevstate
,
event
,
error
);
/* if anyone is stupid enough to wait on the socket object itself,
...
...
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