Skip to content

请教:针对闹钟对齐使用了什么策略? #32

@zengjingfang

Description

@zengjingfang

你好,我在这边文章微信终端跨平台组件 Mars 系列 - 我们如约而至中有如下叙述:

平台特性优化。虽然 Mars 是跨平台的基础组件,但在很多设计上是需要结合各平台的特性的。例如为了尽量减少频繁的唤醒手机,引入了智能心跳,并且在智能心跳中考虑了 Android 的 alarm 对齐特性(具体实现见smart_heartbeat.cc)。再如在网络切换时,为了平滑切换的过程,使用了 iOS 中网络的特性,在 iOS 中做了延迟处理等。

smart_heartbeat.cc

没能明白其中的玄机,还请赐教指点。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions