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

Look at replace TAO::Object is_evaluated_/object_init_lock_ members with a std::atomic_flag #2188

Open
jwillemsen opened this issue Jan 31, 2024 · 2 comments

Comments

@jwillemsen
Copy link
Member

In TAO::Object there is an is_evaluated/object_init_lock_ members which are using a boolean flag, maybe we can use a std::atomic_flag as alternative, would save a mutex lock/unlock in our critical path

@jwillemsen
Copy link
Member Author

Or maybe use std::call_once

@jwillemsen
Copy link
Member Author

Did some work on a new branch, see https://github.com/jwillemsen/ATCD/tree/jwi-stdoncecall. It looks the is_evaluated flag is also used for lazy evaluation and in some more places

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

No branches or pull requests

1 participant