aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/iomgr/pollset_kick.h
diff options
context:
space:
mode:
authorGravatar David Klempner <klempner@google.com>2015-01-26 17:23:33 -0800
committerGravatar David Klempner <klempner@google.com>2015-01-26 17:23:33 -0800
commit8bfbc88d5f2b05bc9e703b96bfe4831521e71f1d (patch)
treec5e8442e61d564515399588908c974eaba570f8e /src/core/iomgr/pollset_kick.h
parent6e8bdb9a02f6030798f85af1cd32da5a6f0ba34b (diff)
Rename wakeup_fd.[hc] to wakeup_fd_posix.[hc]
Fix the transitive closure of this change, including reintroducing pollset_kick_posix/windows where the latter is just a stub.
Diffstat (limited to 'src/core/iomgr/pollset_kick.h')
-rw-r--r--src/core/iomgr/pollset_kick.h22
1 files changed, 9 insertions, 13 deletions
diff --git a/src/core/iomgr/pollset_kick.h b/src/core/iomgr/pollset_kick.h
index 5e90931261..b224177d31 100644
--- a/src/core/iomgr/pollset_kick.h
+++ b/src/core/iomgr/pollset_kick.h
@@ -34,22 +34,18 @@
#ifndef __GRPC_INTERNAL_IOMGR_POLLSET_KICK_H_
#define __GRPC_INTERNAL_IOMGR_POLLSET_KICK_H_
-#include "src/core/iomgr/wakeup_fd.h"
-#include <grpc/support/sync.h>
+#include <grpc/support/port_platform.h>
-/* This is an abstraction around the typical pipe mechanism for waking up a
- thread sitting in a poll() style call. */
+#ifdef GPR_POSIX_SOCKET
+#include "src/core/iomgr/pollset_kick_posix.h"
+#endif
-typedef struct grpc_kick_fd_info {
- grpc_wakeup_fd_info wakeup_fd;
- struct grpc_kick_fd_info *next;
-} grpc_kick_fd_info;
+#ifdef GPR_WIN32
+#include "src/core/iomgr/pollset_kick_windows.h"
+#endif
-typedef struct grpc_pollset_kick_state {
- gpr_mu mu;
- int kicked;
- struct grpc_kick_fd_info *fd_info;
-} grpc_pollset_kick_state;
+/* This is an abstraction around the typical pipe mechanism for waking up a
+ thread sitting in a poll() style call. */
void grpc_pollset_kick_global_init(void);
void grpc_pollset_kick_global_destroy(void);