Hello, 

Extremely sorry if this is a basic question. 

I'm trying to work on the basic async gRPC C++ code as mentioned in 
https://github.com/grpc/grpc/tree/master/examples/cpp/helloworld

Aim is to experiment multi threading of RPC handlers. Can someone please 
let me know that whether the programming logic is correct? ( Please refer 
to the stackoverflow link -  
 
https://stackoverflow.com/questions/69944030/is-this-a-valid-way-to-multi-thread-rpc-handlers-in-grpc-async-server-in-c
 
)

Few questions,

   - Is the completion queue thread-safe?
   - I see that there is a possibility of one instance of CallData being 
   accessed in multiple threads (returned as part of tag). Is CallData 
   thread-safe here or do we need to have a mutex for the same?

Please note that this is an incomplete program.
Appreciate any help on this.

Thanks and Regards,
Raj

-- 
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 grpc-io+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/9b9820fa-f968-49db-9466-83c437dbbf5cn%40googlegroups.com.

Reply via email to