grpc::Channel thread safety

76 views
Skip to first unread message

Khuzema Pithewan

unread,
Mar 27, 2018, 1:56:51 PM3/27/18
to grpc.io
Hi,

Thanks for doing this work. I am beginning to use c++ gRPC in Async mode on client side. I understand completion queue access is thread safe, however find no discussion on thread safety of accessing Channel. I am using GetState and WaitForConnected APIs of channel. Would like to know if these APIs are thread safe?

Best,
Khuzema

ncte...@google.com

unread,
Apr 4, 2018, 1:17:03 PM4/4/18
to grpc.io
There is no need to synchronize around either of those APIs.

Sree Kuchibhotla

unread,
May 21, 2018, 1:35:38 PM5/21/18
to grpc.io
Yes, those apis are thread safe too.
Reply all
Reply to author
Forward
0 new messages