mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-15 15:16:12 -04:00
Signed-off-by: Alexey Polyudov <apolyudov@google.com> Change-Id: I9850950db8bd84f0904ea1a413151887f52098cf
22 lines
488 B
C++
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
|