diff options
author | Craig Tiller <ctiller@google.com> | 2015-09-30 10:49:58 -0700 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2015-09-30 10:49:58 -0700 |
commit | 191b79cf53edbb2537967860257d3b28453dd7c8 (patch) | |
tree | a4522b46a674646c594d58cc42c6d281ebe25bb7 /src/core | |
parent | 072b93870eae270652fc83d88b60244c9bbc2f2c (diff) |
Add comment
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/iomgr/pollset_posix.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/iomgr/pollset_posix.c b/src/core/iomgr/pollset_posix.c index f4e4ce6045..82a82cc064 100644 --- a/src/core/iomgr/pollset_posix.c +++ b/src/core/iomgr/pollset_posix.c @@ -57,7 +57,14 @@ GPR_TLS_DECL(g_current_thread_poller); GPR_TLS_DECL(g_current_thread_worker); +/** Default poll() function - a pointer so that it can be overridden by some + * tests */ grpc_poll_function_type grpc_poll_function = poll; + +/** The alarm system needs to be able to wakeup 'some poller' sometimes + * (specifically when a new alarm needs to be triggered earlier than the next + * alarm 'epoch'). + * This wakeup_fd gives us something to alert on when such a case occurs. */ grpc_wakeup_fd grpc_global_wakeup_fd; static void remove_worker(grpc_pollset *p, grpc_pollset_worker *worker) { |