aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/iomgr/pollset.h
diff options
context:
space:
mode:
authorGravatar David Garcia Quintas <dgq@google.com>2016-03-17 22:42:39 -0700
committerGravatar David Garcia Quintas <dgq@google.com>2016-03-17 22:42:39 -0700
commit185768b7024504bdb94d3b5448c7ddffc31a5151 (patch)
treed46d1aafaf1c65b673bf038287c26d72b8d6f027 /src/core/iomgr/pollset.h
parent3c5def57f65ac92a94f4a78f58fde9ed52aa8e1c (diff)
parentd848db1c06123d23888c705530fc012bcc7e9f35 (diff)
Merge branch 'master' of github.com:grpc/grpc into guard_check
Diffstat (limited to 'src/core/iomgr/pollset.h')
-rw-r--r--src/core/iomgr/pollset.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/core/iomgr/pollset.h b/src/core/iomgr/pollset.h
index 43ce574e34..9500b1a73a 100644
--- a/src/core/iomgr/pollset.h
+++ b/src/core/iomgr/pollset.h
@@ -55,7 +55,7 @@ typedef struct grpc_pollset_worker grpc_pollset_worker;
size_t grpc_pollset_size(void);
void grpc_pollset_init(grpc_pollset *pollset, gpr_mu **mu);
/* Begin shutting down the pollset, and call closure when done.
- * GRPC_POLLSET_MU(pollset) must be held */
+ * pollset's mutex must be held */
void grpc_pollset_shutdown(grpc_exec_ctx *exec_ctx, grpc_pollset *pollset,
grpc_closure *closure);
/** Reset the pollset to its initial state (perhaps with some cached objects);
@@ -66,16 +66,16 @@ void grpc_pollset_destroy(grpc_pollset *pollset);
/* Do some work on a pollset.
May involve invoking asynchronous callbacks, or actually polling file
descriptors.
- Requires GRPC_POLLSET_MU(pollset) locked.
- May unlock GRPC_POLLSET_MU(pollset) during its execution.
+ Requires pollset's mutex locked.
+ May unlock its mutex during its execution.
worker is a (platform-specific) handle that can be used to wake up
from grpc_pollset_work before any events are received and before the timeout
has expired. It is both initialized and destroyed by grpc_pollset_work.
Initialization of worker is guaranteed to occur BEFORE the
- GRPC_POLLSET_MU(pollset) is released for the first time by
- grpc_pollset_work, and it is guaranteed that GRPC_POLLSET_MU(pollset) will
- not be released by grpc_pollset_work AFTER worker has been destroyed.
+ pollset's mutex is released for the first time by grpc_pollset_work
+ and it is guaranteed that it will not be released by grpc_pollset_work
+ AFTER worker has been destroyed.
Tries not to block past deadline.
May call grpc_closure_list_run on grpc_closure_list, without holding the