Ok, thank you! I will stick to solution A for the time being. I must say that I do not really understand why GLPK is not "naturally" thread safe. I though that basically you need to avoid global and static variables in order to get a thread-safe function but I must have missed something.
Thanks again for the solution. Mathieu On 14 December 2016 at 18:56, Andrew Makhorin <[email protected]> wrote: > On Wed, 2016-12-14 at 18:28 +0100, Mathieu Dutour wrote: > > Please see > > http://lists.gnu.org/archive/html/help-glpk/2010-04/ > msg00038.html . > > > > If you are interested in this solution, I can post you a > > reentrant > > version of glpk/src/env/tls.c for GNU/Linux or MS Windows > > (from an old > > glpk distribution). > > Yes, thank you! > > I think this is the right solution. > > For a GNU/Linux version see > http://lists.gnu.org/archive/html/help-glpk/2010-04/msg00043.html > > Attached is a MS Windows dll version. > > You need to replace glpk/src/env/tls.c and then rebuild the package as > usual. > >
_______________________________________________ Help-glpk mailing list [email protected] https://lists.gnu.org/mailman/listinfo/help-glpk
