mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-16 15:36:12 -04:00
Migrate Timer from location/nearby to third_party/nearby
PiperOrigin-RevId: 501928835
This commit is contained in:
committed by
Copybara-Service
parent
868e42f5f2
commit
f94aa7548b
@@ -53,6 +53,7 @@
|
||||
#include "internal/platform/implementation/g3/mutex.h"
|
||||
#include "internal/platform/implementation/g3/scheduled_executor.h"
|
||||
#include "internal/platform/implementation/g3/single_thread_executor.h"
|
||||
#include "internal/platform/implementation/g3/timer.h"
|
||||
#include "internal/platform/implementation/g3/wifi.h"
|
||||
#include "internal/platform/implementation/g3/wifi_direct.h"
|
||||
#include "internal/platform/implementation/g3/wifi_hotspot.h"
|
||||
@@ -224,5 +225,9 @@ ImplementationPlatform::CreateConditionVariable(Mutex* mutex) {
|
||||
new g3::ConditionVariable(static_cast<g3::Mutex*>(mutex)));
|
||||
}
|
||||
|
||||
std::unique_ptr<Timer> ImplementationPlatform::CreateTimer() {
|
||||
return std::make_unique<g3::Timer>();
|
||||
}
|
||||
|
||||
} // namespace api
|
||||
} // namespace nearby
|
||||
|
||||
Reference in New Issue
Block a user