#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "mojo/public/cpp/system/wait.h"
#include <memory>
#include <vector>
#include "base/memory/ptr_util.h"
#include "base/memory/ref_counted.h"
#include "base/synchronization/waitable_event.h"
#include "mojo/public/c/system/trap.h"
#include "mojo/public/cpp/system/trap.h"
namespace mojo {
namespace {
class TriggerContext : public base::RefCountedThreadSafe<TriggerContext> { … };
}
MojoResult Wait(Handle handle,
MojoHandleSignals signals,
MojoTriggerCondition condition,
MojoHandleSignalsState* signals_state) { … }
MojoResult WaitMany(const Handle* handles,
const MojoHandleSignals* signals,
size_t num_handles,
size_t* result_index,
MojoHandleSignalsState* signals_states) { … }
}