Index: third_party/mojo/src/mojo/edk/system/platform_handle_dispatcher.h |
diff --git a/third_party/mojo/src/mojo/edk/system/platform_handle_dispatcher.h b/third_party/mojo/src/mojo/edk/system/platform_handle_dispatcher.h |
index 9e2e37d7aeb21cd68ff96c6b415d1a749b2b75b5..8e8cf6904d96450fb8f6223cabcc78996155d9fe 100644 |
--- a/third_party/mojo/src/mojo/edk/system/platform_handle_dispatcher.h |
+++ b/third_party/mojo/src/mojo/edk/system/platform_handle_dispatcher.h |
@@ -48,14 +48,16 @@ class MOJO_SYSTEM_IMPL_EXPORT PlatformHandleDispatcher final |
override; |
void StartSerializeImplNoLock(Channel* channel, |
size_t* max_size, |
- size_t* max_platform_handles) override; |
+ size_t* max_platform_handles) override |
+ MOJO_NOT_THREAD_SAFE; |
bool EndSerializeAndCloseImplNoLock( |
Channel* channel, |
void* destination, |
size_t* actual_size, |
- embedder::PlatformHandleVector* platform_handles) override; |
+ embedder::PlatformHandleVector* platform_handles) override |
+ MOJO_NOT_THREAD_SAFE; |
- embedder::ScopedPlatformHandle platform_handle_; |
+ embedder::ScopedPlatformHandle platform_handle_ MOJO_GUARDED_BY(mutex()); |
MOJO_DISALLOW_COPY_AND_ASSIGN(PlatformHandleDispatcher); |
}; |