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

lockした直後のreturn文でreleaseできていなかった #128

Merged
merged 1 commit into from
Oct 12, 2021

Conversation

kazuhiro4949
Copy link
Contributor

こちらのプルリクで対応していたlock処理に関して、releaseをせずにreturnしていた部分があったので、それもtryの中に入れて最終的にfinallyが通るようにしました
#126

Copy link
Owner

@keiji keiji left a comment

Choose a reason for hiding this comment

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

@kazuhiro4949
ありがとうございます。

ちなみに複数スレッドからの実行を防ぐ排他制御を、すべてのAPI(ProvideDiagnosisKeysなど)に入れようかとも検討しているのですが、Appleが排他制御を入れてないのにライブラリでやってしまうのはどうなんだろうという気もしています。

たとえばiOSネイティブで実装するとしたらどういう選択をするかという話になってくると思いますが、またご意見をうかがえると嬉しいです。

@keiji keiji merged commit 09c0712 into keiji:master Oct 12, 2021
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.

2 participants