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

Unified Diff: mojo/system/data_pipe.h

Issue 325213004: Mojo: Wrap the satisfied/unsatisfied wait flags state in a single object. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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/public/c/system/types.h ('k') | mojo/system/data_pipe.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/system/data_pipe.h
diff --git a/mojo/system/data_pipe.h b/mojo/system/data_pipe.h
index a4a903b9df6441442a80ebfb8525c026583e64d6..a1d95adc281432e9286d25a2388a8213b631be54 100644
--- a/mojo/system/data_pipe.h
+++ b/mojo/system/data_pipe.h
@@ -12,6 +12,7 @@
#include "mojo/public/c/system/data_pipe.h"
#include "mojo/public/c/system/types.h"
#include "mojo/system/system_impl_export.h"
+#include "mojo/system/wait_flags_state.h"
namespace mojo {
namespace system {
@@ -105,8 +106,7 @@ class MOJO_SYSTEM_IMPL_EXPORT DataPipe :
virtual MojoResult ProducerEndWriteDataImplNoLock(
uint32_t num_bytes_written) = 0;
// Note: A producer should not be writable during a two-phase write.
- virtual MojoWaitFlags ProducerSatisfiedFlagsNoLock() = 0;
- virtual MojoWaitFlags ProducerSatisfiableFlagsNoLock() = 0;
+ virtual WaitFlagsState ProducerGetWaitFlagsStateNoLock() const = 0;
virtual void ConsumerCloseImplNoLock() = 0;
// |*num_bytes| will be a nonzero multiple of |element_num_bytes_|.
@@ -122,8 +122,7 @@ class MOJO_SYSTEM_IMPL_EXPORT DataPipe :
bool all_or_none) = 0;
virtual MojoResult ConsumerEndReadDataImplNoLock(uint32_t num_bytes_read) = 0;
// Note: A consumer should not be writable during a two-phase read.
- virtual MojoWaitFlags ConsumerSatisfiedFlagsNoLock() = 0;
- virtual MojoWaitFlags ConsumerSatisfiableFlagsNoLock() = 0;
+ virtual WaitFlagsState ConsumerGetWaitFlagsStateNoLock() const = 0;
// Thread-safe and fast (they don't take the lock):
bool may_discard() const { return may_discard_; }
« no previous file with comments | « mojo/public/c/system/types.h ('k') | mojo/system/data_pipe.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698