Closed Nemirtingas closed 3 years ago
Good question. I haven't thought about mutexes, safe, and locks for years :( Maybe if you showed me a piece of code you would like to get working, it would remind me of any idea I might have once had.
Only a few things come to mind: safe was designed to let you do with your locks and mutexes everything they allow you to do without safe, if this is false, it is a failure on my part! Also, I remember seeing a upgradeable lock implementation in a stack overflow answer from Howard Hinnant (this stuff might be old..!), maybe it contains useful info for you ? I think boost as an upgradeable lock.
If you show me some code, maybe I can be more useful!
Yes, boost has an upgradable lock. Currently I did my thing in a way so I don't need anymore the upgradable lock. So I don't need it anymore, thanks for passing by !
Hi, I'm currently trying out safe and I wonder how you could implement an upgradable safe::Access with the shared_mutex/shared_lock.