What does it mean to have cq->next(&tag, &ok) return the out param ok as
false?
I appreciate if someone answer this.
Regards,
Mohan
On Thursday, 5 November 2015 at 08:48:33 UTC+5:30 hardy wrote:
> Is there anyone familiar with CompleteQueue could tell me how the
> mechanism is? The only piece of codes I can found is
>
> void HandleRpcs() {
> // Spawn a new CallData instance to serve new clients.
> new CallData(&service_, cq_.get());
> void* tag; // uniquely identifies a request.
> bool ok;
> while (true) {
> // Block waiting to read the next event from the completion queue.
> The
> // event is uniquely identified by its tag, which in this case is
> the
> // memory address of a CallData instance.
> cq_->Next(&tag, &ok);
> GPR_ASSERT(ok);
> static_cast<CallData*>(tag)->Proceed();
> }
> }
>
>
> I really would like to know how I could response to different kinds of
> request? And will the loop keep iterating over the CompleteQueue again and
> again?
>
>
--
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 view this discussion on the web visit
https://groups.google.com/d/msgid/grpc-io/2fd74d13-8cb9-4b44-93a0-ec7efc76da86n%40googlegroups.com.