Files
nearby/cpp/platform/public/pipe.cc
T
Alexey Polyudov 2155b3ddeb Roll forward to cl/338482889
Signed-off-by: Alexey Polyudov <apolyudov@google.com>
Change-Id: I9850950db8bd84f0904ea1a413151887f52098cf
2020-10-22 10:47:34 -07:00

22 lines
488 B
C++

#include "platform/public/pipe.h"
#include "platform/api/condition_variable.h"
#include "platform/api/mutex.h"
#include "platform/api/platform.h"
namespace location {
namespace nearby {
namespace {
using Platform = api::ImplementationPlatform;
}
Pipe::Pipe() {
auto mutex = Platform::CreateMutex(api::Mutex::Mode::kRegular);
auto cond = Platform::CreateConditionVariable(mutex.get());
Setup(std::move(mutex), std::move(cond));
}
} // namespace nearby
} // namespace location