Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(641)

Unified Diff: mojo/edk/system/data_pipe_impl.h

Issue 1885663002: EDK: Add implementation of data pipe producer write threshold stuff. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/edk/system/data_pipe.cc ('k') | mojo/edk/system/data_pipe_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/system/data_pipe_impl.h
diff --git a/mojo/edk/system/data_pipe_impl.h b/mojo/edk/system/data_pipe_impl.h
index e92d66cc1a8f1cbc7c5439fea0a44a21de662137..bd3cc3164d40e598a879670bdd4ead09c2a8b8e3 100644
--- a/mojo/edk/system/data_pipe_impl.h
+++ b/mojo/edk/system/data_pipe_impl.h
@@ -144,6 +144,10 @@ class DataPipeImpl {
bool consumer_open() const MOJO_NO_THREAD_SAFETY_ANALYSIS {
return owner_->consumer_open_no_lock();
}
+ size_t producer_write_threshold_num_bytes() const
+ MOJO_NO_THREAD_SAFETY_ANALYSIS {
+ return owner_->producer_write_threshold_num_bytes_no_lock();
+ }
size_t consumer_read_threshold_num_bytes() const
MOJO_NO_THREAD_SAFETY_ANALYSIS {
return owner_->consumer_read_threshold_num_bytes_no_lock();
« no previous file with comments | « mojo/edk/system/data_pipe.cc ('k') | mojo/edk/system/data_pipe_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698