benreid24 / BLIB

Small organized collection of common code I have accumulated over the years that has amassed into a proper 2d game engine
1 stars 0 forks source link

Refactor re-entrant mutex #183

Closed benreid24 closed 2 weeks ago

benreid24 commented 11 months ago

Current implementation is quite bad. Refactor to avoid the use of global pointer maps for tracking lock state. Consider adding Boost and using that instead. Could also just use a thread-local lock state variable (counter?)