Hi Sree, Vijay, and Pau, All the suggestions above look promising.
grpc::Alarm is closest to what I'm looking for. I'll give it a shot. What may be the consequences of posting immediate deadline alarms at a high rate? Possibly 10k per second. In my setup that's the throughput of the "other" queue. Cost of alarms may be reduced by "batching" multiple queue items into an alarm. Sree, you mentioned grpc_cq_begin_op() and grpc_cq_end_op() APIs. I see that C++ gprc::CompletionQueue::cq() returns a pointer to the underlying grpc_completion_queue. That should allow us to play games with begin/end ops using the C and C++ api simultaneously, No? Are there gotchas? Pau, thanks for bringing up the callback api. What is the timeline for it to be official or even beta? Regards, Sumant On Wednesday, February 6, 2019 at 10:50:57 PM UTC-8, Pau Freixes wrote: > > Hi, > > Regarding the last queation on using a conditional variable, If Im not > wrong the new experimental callback complwtio queue should give you > enought freedom for implementing what you are looking for - Vijay as an > author will correct me > > > On Thu, Feb 7, 2019, 07:06 <[email protected] <javascript:> wrote: > >> That totally makes sense. Thanks for the suggestion Vijay! >> >> -- >> You received this message because you are subscribed to the Google Groups >> "grpc.io" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> To post to this group, send email to [email protected] >> <javascript:>. >> Visit this group at https://groups.google.com/group/grpc-io. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/grpc-io/5a61674a-b7b8-49b5-9314-ada6b4382502%40googlegroups.com >> . >> For more options, visit https://groups.google.com/d/optout. >> > -- You received this message because you are subscribed to the Google Groups "grpc.io" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/grpc-io. To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/1facbc0d-1dc1-4b64-9d03-0148ba59cf8a%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
