diff options
author | Vijay Pai <vpai@google.com> | 2015-08-05 11:29:31 -0700 |
---|---|---|
committer | Vijay Pai <vpai@google.com> | 2015-08-05 11:29:31 -0700 |
commit | 8158c6c3097b864c88b9a1a46da34220798994a3 (patch) | |
tree | 548afb311cbaa1b29951cfe1297a1e1fa8eed7ef /include | |
parent | 183c9f77a7506b4eeebc58ca5a98069d9617eced (diff) | |
parent | 060ca5fe18c6008d2b71929f03117934d8ead469 (diff) |
Merge pull request #2713 from ctiller/plucking-hell
Allow specific pollers to be woken
Diffstat (limited to 'include')
-rw-r--r-- | include/grpc/grpc.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/include/grpc/grpc.h b/include/grpc/grpc.h index d9dd79ab65..15556a6d5c 100644 --- a/include/grpc/grpc.h +++ b/include/grpc/grpc.h @@ -391,10 +391,17 @@ grpc_event grpc_completion_queue_next(grpc_completion_queue *cq, otherwise a grpc_event describing the event that occurred. Callers must not call grpc_completion_queue_next and - grpc_completion_queue_pluck simultaneously on the same completion queue. */ + grpc_completion_queue_pluck simultaneously on the same completion queue. + + Completion queues support a maximum of GRPC_MAX_COMPLETION_QUEUE_PLUCKERS + concurrently executing plucks at any time. */ grpc_event grpc_completion_queue_pluck(grpc_completion_queue *cq, void *tag, gpr_timespec deadline); +/** Maximum number of outstanding grpc_completion_queue_pluck executions per + completion queue */ +#define GRPC_MAX_COMPLETION_QUEUE_PLUCKERS 6 + /** Begin destruction of a completion queue. Once all possible events are drained then grpc_completion_queue_next will start to produce GRPC_QUEUE_SHUTDOWN events only. At that point it's safe to call |