|
|
@ -56,6 +56,7 @@ const grpc_completion_queue_attributes kCompletionQueueAttr = { |
|
|
|
}); |
|
|
|
}); |
|
|
|
dispatch_async(gDefaultConcurrentQueue, ^{ |
|
|
|
dispatch_async(gDefaultConcurrentQueue, ^{ |
|
|
|
while (YES) { |
|
|
|
while (YES) { |
|
|
|
|
|
|
|
@autoreleasepool { |
|
|
|
// The following call blocks until an event is available. |
|
|
|
// The following call blocks until an event is available. |
|
|
|
grpc_event event = |
|
|
|
grpc_event event = |
|
|
|
grpc_completion_queue_next(unmanagedQueue, gpr_inf_future(GPR_CLOCK_REALTIME), NULL); |
|
|
|
grpc_completion_queue_next(unmanagedQueue, gpr_inf_future(GPR_CLOCK_REALTIME), NULL); |
|
|
@ -71,6 +72,7 @@ const grpc_completion_queue_attributes kCompletionQueueAttr = { |
|
|
|
default: |
|
|
|
default: |
|
|
|
[NSException raise:@"Unrecognized completion type" format:@""]; |
|
|
|
[NSException raise:@"Unrecognized completion type" format:@""]; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|