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

完成内存缓存 #27

Merged
merged 5 commits into from
Jul 29, 2019
Merged

Conversation

0x1306a94
Copy link
Contributor

@0x1306a94 0x1306a94 commented Jul 27, 2019

CheckList

Thanks for considering to this repository. Before you submit your issue, please confirm these boxes are checked.

  • I have read 《[EN]Style guide for Swift repo [CN]Swift项目代码规范、规约选型》.
  • 我遵守一下 Merge 规则:邀请群组中任意一人进行review,即可合并。让 reviewer 在 PR 所在页面写下review意见表示通过,即可合并。最简单写一句 LGTM 也可以。不按照本规则执行,自己 PR 自己 Merge 并引入问题,会被收回 Merge 权限。

My issue:


What I have done:

@0x1306a94 0x1306a94 closed this Jul 27, 2019
@0x1306a94 0x1306a94 reopened this Jul 27, 2019
}
pthread_mutex_unlock(&mutex)
} else {
usleep(10 * 1000) //10 ms
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

usleep()函数可能会在多线程下造成阻塞。建议使用runloop,添加事件源

CFRunLoopRunInMode(kCFRunLoopDefaultMode, 0.01, true);

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#28

修复无法子线程释放
@birdmichael birdmichael merged commit b3460da into iteatimeteam:develop Jul 29, 2019
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

Successfully merging this pull request may close these issues.

3 participants