I will use a singleton for the ResourceManager
having this design I can( I hope! ) have n parallel accesses(searching
where n is the number of resources.
any sugestion in general?
I don't see any thing checking for a successful lock.
try_lock logic should be used with is_lock logic to verify the lock is
If it's not going to check, then you should use lock instead of try_lock