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

Is this objectool multi-threaded safe? #4

Open
guzhongyan opened this issue Sep 11, 2023 · 1 comment
Open

Is this objectool multi-threaded safe? #4

guzhongyan opened this issue Sep 11, 2023 · 1 comment

Comments

@guzhongyan
Copy link

Hi @bitshifter , I'm wondering if the objectpool can be used in a multi-threaded case. That means mulitple threads share one object pool to get and return objects. Is it safe? will there be any race condition issues?

@bitshifter
Copy link
Owner

Hi @guzhongyan. No it's not thread safe, you would need to wrap access with a mutex or something similar to protect from data races.

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