diff options
author | Muxi Yan <mxyan@google.com> | 2018-10-19 15:43:46 -0700 |
---|---|---|
committer | Muxi Yan <mxyan@google.com> | 2018-10-19 15:43:46 -0700 |
commit | 24d952b2b916030aa02f33afb7746b2582ca88e4 (patch) | |
tree | ed960badeedc20c2afe4dae86e19dc7b959e0c3c /src/objective-c/GRPCClient/GRPCCall.m | |
parent | 422d3296b2d4fb3f8aa0991c2ffa895251ad8e91 (diff) |
Add comments to ivars of GRPCCall2
Diffstat (limited to 'src/objective-c/GRPCClient/GRPCCall.m')
-rw-r--r-- | src/objective-c/GRPCClient/GRPCCall.m | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/objective-c/GRPCClient/GRPCCall.m b/src/objective-c/GRPCClient/GRPCCall.m index 1782078961..74b284d924 100644 --- a/src/objective-c/GRPCClient/GRPCCall.m +++ b/src/objective-c/GRPCClient/GRPCCall.m @@ -85,13 +85,24 @@ const char *kCFStreamVarName = "grpc_cfstream"; @end @implementation GRPCCall2 { + /** Options for the call. */ GRPCCallOptions *_callOptions; + /** The handler of responses. */ id<GRPCResponseHandler> _handler; + // Thread safety of ivars below are protected by _dispatcheQueue. + + /** + * Make use of legacy GRPCCall to make calls. Nullified when call is finished. + */ GRPCCall *_call; + /** Flags whether initial metadata has been published to response handler. */ BOOL _initialMetadataPublished; + /** Streaming call writeable to the underlying call. */ GRXBufferedPipe *_pipe; + /** Serial dispatch queue for tasks inside the call. */ dispatch_queue_t _dispatchQueue; + /** Flags whether call has started. */ bool _started; } |