> If change the void* tls in tls.c file to have the __thread gcc C
> extension modifier and I replace all the strtok with the posix
> strtok_r in glpsql.c I should have a library that works for my
> purposes. That is, execute different solvers in parallel on
> different problems.
> 
> Is that right or I am missing something?
> 

Probably this should work. Though I've never tested glpk with gcc
__thread. Besides, you don't need to replace strtok--in multi-threaded
environment it should store its static objects in a thread local storage
(like errno does).



_______________________________________________
Help-glpk mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-glpk

Reply via email to