Initial implementation of ConditionVariable and Mutex

PiperOrigin-RevId: 394293910
This commit is contained in:
jfcarroll
2021-09-01 12:56:04 -07:00
committed by Copybara-Service
parent 2a629b2c1b
commit e895f3c100
11 changed files with 554 additions and 40 deletions
+2 -2
View File
@@ -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(