diff options
author | Jan Tattermusch <jtattermusch@users.noreply.github.com> | 2015-07-29 13:06:19 -0700 |
---|---|---|
committer | Jan Tattermusch <jtattermusch@users.noreply.github.com> | 2015-07-29 13:06:19 -0700 |
commit | 357f0bdce17c73112430896e49b291cba0b369f4 (patch) | |
tree | 188cb109657a58545e8aab66836dab6ccd851db4 /src/core | |
parent | 96f1e5a08e7b086d85f27251ced60fe58544c029 (diff) | |
parent | f29e9db90c0ab443ff9836c9946f2fdfd067cf8e (diff) |
Merge pull request #2700 from nicolasnoble/windows-pollset-set-fix
Fixing Windows's missing pollset_set.
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/iomgr/tcp_windows.c | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/core/iomgr/tcp_windows.c b/src/core/iomgr/tcp_windows.c index 38ae74abec..5e0457a37b 100644 --- a/src/core/iomgr/tcp_windows.c +++ b/src/core/iomgr/tcp_windows.c @@ -368,7 +368,14 @@ static grpc_endpoint_write_status win_write(grpc_endpoint *ep, return GRPC_ENDPOINT_WRITE_PENDING; } -static void win_add_to_pollset(grpc_endpoint *ep, grpc_pollset *pollset) { +static void win_add_to_pollset(grpc_endpoint *ep, grpc_pollset *ps) { + (void) ps; + grpc_tcp *tcp = (grpc_tcp *) ep; + grpc_iocp_add_socket(tcp->socket); +} + +static void win_add_to_pollset_set(grpc_endpoint *ep, grpc_pollset_set *pss) { + (void) pss; grpc_tcp *tcp = (grpc_tcp *) ep; grpc_iocp_add_socket(tcp->socket); } @@ -402,8 +409,9 @@ static char *win_get_peer(grpc_endpoint *ep) { } static grpc_endpoint_vtable vtable = {win_notify_on_read, win_write, - win_add_to_pollset, win_shutdown, - win_destroy, win_get_peer}; + win_add_to_pollset, win_add_to_pollset_set, + win_shutdown, win_destroy, + win_get_peer}; grpc_endpoint *grpc_tcp_create(grpc_winsocket *socket, char *peer_string) { grpc_tcp *tcp = (grpc_tcp *) gpr_malloc(sizeof(grpc_tcp)); |