Skip to content
Snippets Groups Projects
Commit aadc13ad authored by Jan Tattermusch's avatar Jan Tattermusch
Browse files

clarify grpc_call_start_batch thread safety.

parent c878e2a3
No related branches found
No related tags found
No related merge requests found
...@@ -387,7 +387,10 @@ grpc_call *grpc_channel_create_registered_call( ...@@ -387,7 +387,10 @@ grpc_call *grpc_channel_create_registered_call(
The order of ops specified in the batch has no significance. The order of ops specified in the batch has no significance.
Only one operation of each type can be active at once in any given Only one operation of each type can be active at once in any given
batch. batch.
THREAD SAFETY: grpc_call_start_batch is thread-compatible */ THREAD SAFETY: access to grpc_call_start_batch in multi-threaded environment
needs to be synchronized. As an optimization, you may synchronize batches
containing just send operations independently from batches containing just
receive operations. */
grpc_call_error grpc_call_start_batch(grpc_call *call, const grpc_op *ops, grpc_call_error grpc_call_start_batch(grpc_call *call, const grpc_op *ops,
size_t nops, void *tag); size_t nops, void *tag);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment