Merge branch 'the-ultimate-showdown' of github.com:nicolasnoble/grpc into the-ultimate-showdown

pull/2612/head
Nicolas "Pixel" Noble 9 years ago
commit f0b417dc84
  1. 5
      src/objective-c/GRPCClient/private/GRPCCompletionQueue.m
  2. 2
      src/objective-c/GRPCClient/private/GRPCHost.m
  3. 2
      src/objective-c/GRPCClient/private/GRPCUnsecuredChannel.m
  4. 4
      src/objective-c/GRPCClient/private/GRPCWrappedCall.m

@ -43,7 +43,7 @@
- (instancetype)init { - (instancetype)init {
if ((self = [super init])) { if ((self = [super init])) {
_unmanagedQueue = grpc_completion_queue_create(); _unmanagedQueue = grpc_completion_queue_create(NULL);
// This is for the following block to capture the pointer by value (instead // This is for the following block to capture the pointer by value (instead
// of retaining self and doing self->_unmanagedQueue). This is essential // of retaining self and doing self->_unmanagedQueue). This is essential
@ -64,7 +64,8 @@
while (YES) { while (YES) {
// The following call blocks until an event is available. // The following call blocks until an event is available.
grpc_event event = grpc_completion_queue_next(unmanagedQueue, grpc_event event = grpc_completion_queue_next(unmanagedQueue,
gpr_inf_future(GPR_CLOCK_REALTIME)); gpr_inf_future(GPR_CLOCK_REALTIME),
NULL);
GRPCQueueCompletionHandler handler; GRPCQueueCompletionHandler handler;
switch (event.type) { switch (event.type) {
case GRPC_OP_COMPLETE: case GRPC_OP_COMPLETE:

@ -97,7 +97,7 @@
queue.unmanagedQueue, queue.unmanagedQueue,
path.UTF8String, path.UTF8String,
self.hostName.UTF8String, self.hostName.UTF8String,
gpr_inf_future(GPR_CLOCK_REALTIME)); gpr_inf_future(GPR_CLOCK_REALTIME), NULL);
} }
- (GRPCChannel *)channel { - (GRPCChannel *)channel {

@ -38,7 +38,7 @@
@implementation GRPCUnsecuredChannel @implementation GRPCUnsecuredChannel
- (instancetype)initWithHost:(NSString *)host { - (instancetype)initWithHost:(NSString *)host {
return (self = [super initWithChannel:grpc_insecure_channel_create(host.UTF8String, NULL)]); return (self = [super initWithChannel:grpc_insecure_channel_create(host.UTF8String, NULL, NULL)]);
} }
// TODO(jcanizales): GRPCSecureChannel and GRPCUnsecuredChannel are just convenience initializers // TODO(jcanizales): GRPCSecureChannel and GRPCUnsecuredChannel are just convenience initializers

@ -282,7 +282,7 @@
for (GRPCOperation *operation in operations) { for (GRPCOperation *operation in operations) {
[operation finish]; [operation finish];
} }
})); }), NULL);
gpr_free(ops_array); gpr_free(ops_array);
if (error != GRPC_CALL_OK) { if (error != GRPC_CALL_OK) {
@ -293,7 +293,7 @@
} }
- (void)cancel { - (void)cancel {
grpc_call_cancel(_call); grpc_call_cancel(_call, NULL);
} }
- (void)dealloc { - (void)dealloc {

Loading…
Cancel
Save