#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "mojo/public/cpp/bindings/sync_event_watcher.h"
#include <algorithm>
#include <utility>
#include "base/check_op.h"
#include "base/memory/scoped_refptr.h"
#include "base/synchronization/waitable_event.h"
#include "third_party/abseil-cpp/absl/container/inlined_vector.h"
namespace mojo {
SyncEventWatcher::SyncEventWatcher(base::WaitableEvent* event,
base::RepeatingClosure callback)
: … { … }
SyncEventWatcher::~SyncEventWatcher() { … }
void SyncEventWatcher::AllowWokenUpBySyncWatchOnSameThread() { … }
bool SyncEventWatcher::SyncWatch(const bool** stop_flags,
size_t num_stop_flags) { … }
void SyncEventWatcher::IncrementRegisterCount() { … }
void SyncEventWatcher::DecrementRegisterCount() { … }
}