meganz / mingw-std-threads

Standard threads implementation currently still missing on MinGW GCC on Windows
BSD 2-Clause "Simplified" License
439 stars 137 forks source link

Enhanced debugging #42

Closed nmcclatchey closed 6 years ago

nmcclatchey commented 6 years ago

Improves debugging features of the library. Specifically,

nmcclatchey commented 6 years ago

I'm not really sure why GitHub Desktop added all the extraneous commits at the beginning.

A question: Should the recursive-lock checking be disabled by NDEBUG? The C++ standard only mandates "undefined behavior", so defaulting to high-performance would be the expected behavior. I recommend the following: Document a new macro: STDMUTEX_RECURSION_CHECKS.

I've added a commit with this behavior, to be reverted if there is no support for it.