mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-16 15:36:12 -04:00
Initial implementation of ConditionVariable and Mutex
PiperOrigin-RevId: 394293910
This commit is contained in:
committed by
Copybara-Service
parent
2a629b2c1b
commit
e895f3c100
@@ -66,13 +66,13 @@ std::unique_ptr<CountDownLatch> ImplementationPlatform::CreateCountDownLatch(
|
||||
|
||||
// TODO(b/184975123): replace with real implementation.
|
||||
std::unique_ptr<Mutex> ImplementationPlatform::CreateMutex(Mutex::Mode mode) {
|
||||
return absl::make_unique<windows::Mutex>();
|
||||
return absl::make_unique<windows::Mutex>(mode);
|
||||
}
|
||||
|
||||
// TODO(b/184975123): replace with real implementation.
|
||||
std::unique_ptr<ConditionVariable>
|
||||
ImplementationPlatform::CreateConditionVariable(Mutex* mutex) {
|
||||
return std::unique_ptr<ConditionVariable>(new windows::ConditionVariable());
|
||||
return absl::make_unique<location::nearby::windows::ConditionVariable>(mutex);
|
||||
}
|
||||
|
||||
std::unique_ptr<InputFile> ImplementationPlatform::CreateInputFile(
|
||||
|
||||
Reference in New Issue
Block a user