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: I8936b527079074d5c3af5531b9245063767cc4a7
22 lines
500 B
C++
22 lines
500 B
C++
#include "platform_v2/public/pipe.h"
|
|
|
|
#include "platform_v2/api/condition_variable.h"
|
|
#include "platform_v2/api/mutex.h"
|
|
#include "platform_v2/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
|