LRN <lrn1...@gmail.com> writes:

> Here's a patch to fix this.
> It does solve the problem for the simple testcase, but i have no idea how it
> would behave in the wild, i didn't test it on anything else. One might notice
> that it is set to crash when certain things happen. I'm not sure whether these
> things would happen with correct real-life code. If they do, we'll have to 
> find
> another way.

> +  if (EPERM == pthread_spin_destroy (old))
> +    {
> +      fprintf(stderr, "Error cleaning up spin_keys for thread %lu\n", 
> GetCurrentThreadId ());
> +      abort ();
> +    }

Why is fprintf used for reporting critical errors? On a GUI application
running outside of a debugger that's a guarantee that the message will
be invisible.


------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to