Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
zengjingfang opened this issue Mar 6, 2018 · 0 comments
Open

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

zengjingfang opened this issue Mar 6, 2018 · 0 comments

Comments

@zengjingfang
Copy link

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

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

smart_heartbeat.cc

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant