Fix some tsan problems in gRPC ObjC

pull/13180/head
Muxi Yan 7 years ago
parent 555b84506e
commit 831940a731
  1. 7
      src/objective-c/GRPCClient/GRPCCall.m

@ -244,9 +244,12 @@ static NSString * const kBearerPrefix = @"Bearer ";
// method.
// TODO(jcanizales): Rename to readResponseIfNotPaused.
- (void)startNextRead {
if (self.state == GRXWriterStatePaused) {
return;
@synchronized(self) {
if (self.state == GRXWriterStatePaused) {
return;
}
}
__weak GRPCCall *weakSelf = self;
__weak GRXConcurrentWriteable *weakWriteable = _responseWriteable;

Loading…
Cancel
Save