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

cleandisk #17

Open
garryzhong opened this issue May 30, 2015 · 3 comments
Open

cleandisk #17

garryzhong opened this issue May 30, 2015 · 3 comments

Comments

@garryzhong
Copy link

cleandisk 时没有考虑到并行,可以用 barrier
cleancache 也是

@daltoniam
Copy link
Owner

I ran this through google translate, but I am not sure what you are trying to say. I hope one day to learn Mandarin 😄.

@garryzhong
Copy link
Author

sorry,i thought you are chinese, sorry
i remind that method "cleanDisk()" should run under
dispatch_barrier_async(<#queue: dispatch_queue_t#>, <#block: dispatch_block_t##() -> Void#>).
because maybe crash in concurrence,when i call cleanDisk() and call fromDisk(...) immediately

@daltoniam
Copy link
Owner

All good. I think I understand now, probably be a smart addition to protect against race conditions.

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

2 participants