mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-16 15:36:12 -04:00
Roll forward to cl/314747126
Signed-off-by: Alexey Polyudov <apolyudov@google.com> Change-Id: Ie19e006429b138b3768e97dae971a43fdc5ef8bf
This commit is contained in:
+12
-7
@@ -46,15 +46,20 @@ namespace connections {
|
||||
* SystemClock
|
||||
* ConditionVariable
|
||||
*
|
||||
* The Platform class must also provide typedefs for the following subset of
|
||||
* primitives to identify the concrete classes:
|
||||
* A sample Platform definitions can be found at
|
||||
* //platform/impl/shared/sample/sample_platform.cc
|
||||
*
|
||||
* SingleThreadExecutorType
|
||||
* MultiThreadExecutorType
|
||||
* ScheduledExecutorType
|
||||
* It is no longer necessary to parametrize system types with a platform type.
|
||||
* New, recommended approach is to define platform support by implementing
|
||||
* static methods of "location::nearby::platform::ImplementationPlatform" class.
|
||||
* every library class that needs platform support, must include platform
|
||||
* header "platform/api/platform.h" and use it.
|
||||
* To keep textual compatibility, one could define the following alias
|
||||
* "using Platform = platform::ImplementationPlatform;".
|
||||
* this will replace the "template <typename Platform>" declaration.
|
||||
*
|
||||
* A sample Platform class can be found at
|
||||
* //platform/impl/sample/sample_platform.h
|
||||
* As an added benefit, this will allow to not include *.cc files from *.h,
|
||||
* and let more static analysis happen at compiler stage.
|
||||
*/
|
||||
template <typename Platform>
|
||||
class Core {
|
||||
|
||||
Reference in New Issue
Block a user