objectpool
objectpool copied to clipboard
Is this objectool multi-threaded safe?
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?
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.