[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Help-glpk] Re: re-entrant test version of GLPK
From: |
Andrew Makhorin |
Subject: |
[Help-glpk] Re: re-entrant test version of GLPK |
Date: |
Thu, 2 Oct 2003 08:19:21 +0300 |
>The file operations have not been dealt (yet?),
>so they still remain non re-entrant.
To make glpk reentrant you only need to replace two low-level routines
lib_set_ptr and lib_get_ptr in the file glplib1.c. There is the
"pointer" there, which must be stored separately for each thread in
so-called thread local storage (currently it is simply stored in a
static location called "secret place"). Then the entire glpk (except
some routines which still use static data) will be reentrant.