On Saturday, 28 October 2017 at 18:58:50 UTC, Andrei Alexandrescu
wrote:
core.exception.AssertError@src\core\sync\mutex.d(380): unittest
failure
That test is incorrect, see:
https://msdn.microsoft.com/en-us/library/windows/desktop/ms682552%28v=vs.85%29.aspx
After a critical section object has been deleted, do not
reference the object in any function that operates on critical
sections (such as EnterCriticalSection,
TryEnterCriticalSection, and LeaveCriticalSection) other than
InitializeCriticalSection and
InitializeCriticalSectionAndSpinCount. If you attempt to do so,
memory corruption and other unexpected errors can occur.