diff options
author | Muxi Yan <mxyan@google.com> | 2018-12-21 13:39:21 -0800 |
---|---|---|
committer | Muxi Yan <mxyan@google.com> | 2019-01-07 10:27:20 -0800 |
commit | 5e10a3b037bcd20ab17428ccb765ba9464eb3644 (patch) | |
tree | 187a4a277055a8d969cabb77d605477599895731 /src/objective-c/RxLibrary/GRXWriter.h | |
parent | 4ff3543465e0a8d26a5bdf934f1dc09d0703970b (diff) |
Make gRPC ObjC thread safety right
Diffstat (limited to 'src/objective-c/RxLibrary/GRXWriter.h')
-rw-r--r-- | src/objective-c/RxLibrary/GRXWriter.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/objective-c/RxLibrary/GRXWriter.h b/src/objective-c/RxLibrary/GRXWriter.h index 5d99583a92..ac1f7b9c4c 100644 --- a/src/objective-c/RxLibrary/GRXWriter.h +++ b/src/objective-c/RxLibrary/GRXWriter.h @@ -80,9 +80,9 @@ typedef NS_ENUM(NSInteger, GRXWriterState) { * This property can be used to query the current state of the writer, which determines how it might * currently use its writeable. Some state transitions can be triggered by setting this property to * the corresponding value, and that's useful for advanced use cases like pausing an writer. For - * more details, see the documentation of the enum further down. + * more details, see the documentation of the enum further down. The property is thread safe. */ -@property(nonatomic) GRXWriterState state; +@property(atomic) GRXWriterState state; /** * Transition to the Started state, and start sending messages to the writeable (a reference to it |