help-glpk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-glpk] non-official updated version of glpk (4.61 pre-release)


From: Andrew Makhorin
Subject: [Help-glpk] non-official updated version of glpk (4.61 pre-release)
Date: Mon, 09 Jan 2017 15:26:20 +0300

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]