non-official updated version of glpk (4.61 pre-release)
Andrew Makhorin <[email protected]>
| Newsgroups | gmane.comp.gnu.glpk |
|---|---|
| Message-ID | <1483964780.29739.3.camel@corvax> |
Please see an updated version of glpk here: http://sourceforge.net/projects/noumenon/files/tmp/ (Note that this is *not* an official release.) The following main changes were made: 1. The option was added to build a stdcall DLL with MSVC10 (for MS Windows version). 2. The option was added to build a re-entrant version of the package. A re-entrant version of the package allows running multiple *independent* instances of glpk in different threads of a multi-threaded application. A re-entrant version of the package can be built, for example, with the following commands: ./configure ... make CFLAGS="-DTLS=__thread" ... The storage-class specifier defined by macro TLS depends on the compiler used. It may be __thread for older versions of gcc, or _Thread_local if the compiler conforms to C11. If the application calls glpk routines from multiple threads, the following should be taken into account: 1) a thread should not access glpk program objects (e.g. glp_proc) created by other threads; 2) to prevent memory leaks each thread before termination should call the glpk api routine glp_free_env. Andrew Makhorin