1
General discussions / Re: trylock() patch
« on: January 06, 2014, 02:36:27 am »- If SFML "does not try to be an concurrency library," why does it have a Mutex class in the first place? The existing one is a wrapper for the system libraries anyway, and both Windows and Linux (pthread users, anyway) have both lock and trylock, but only the former is exposed by SFML.
- Not everyone is using C++11, though the number of projects using it grows every day.
- I have no expectation for it to be officially included; I'm simply offering it as a patch for anyone that desires this functionality.
I only made this to add what I thought was lacking in the library. Where there is lock() there should be trylock() as well...and now there is.