aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/objective-c
diff options
context:
space:
mode:
authorGravatar Jorge Canizales <jcanizales@google.com>2015-06-21 21:59:37 -0700
committerGravatar Jorge Canizales <jcanizales@google.com>2015-06-21 21:59:37 -0700
commit884870461d597c06b746cb99ff305712d3004299 (patch)
treead6d543a0bf97d866ca4f3c50eb59657a5bba108 /src/objective-c
parent8d997752952becde6490d885ad21eef70758f874 (diff)
Document why a grpc_op ivar, and the role of -finish
Diffstat (limited to 'src/objective-c')
-rw-r--r--src/objective-c/GRPCClient/private/GRPCWrappedCall.h1
-rw-r--r--src/objective-c/GRPCClient/private/GRPCWrappedCall.m2
2 files changed, 3 insertions, 0 deletions
diff --git a/src/objective-c/GRPCClient/private/GRPCWrappedCall.h b/src/objective-c/GRPCClient/private/GRPCWrappedCall.h
index adba624d5b..c08aefc6a8 100644
--- a/src/objective-c/GRPCClient/private/GRPCWrappedCall.h
+++ b/src/objective-c/GRPCClient/private/GRPCWrappedCall.h
@@ -38,6 +38,7 @@
@interface GRPCOperation : NSObject
@property(nonatomic, readonly) grpc_op op;
+// Guaranteed to be called when the operation has finished.
- (void)finish;
@end
diff --git a/src/objective-c/GRPCClient/private/GRPCWrappedCall.m b/src/objective-c/GRPCClient/private/GRPCWrappedCall.m
index 5723de2e9c..4ccd5723c6 100644
--- a/src/objective-c/GRPCClient/private/GRPCWrappedCall.m
+++ b/src/objective-c/GRPCClient/private/GRPCWrappedCall.m
@@ -43,6 +43,8 @@
@implementation GRPCOperation {
@protected
+ // Most operation subclasses don't set any flags in the grpc_op, and rely on the flag member being
+ // initialized to zero.
grpc_op _op;
void(^_handler)();
}