help-glpk
[Top][All Lists]
Advanced

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

Re: [Help-glpk] Multi-thread questions


From: Andrew Makhorin
Subject: Re: [Help-glpk] Multi-thread questions
Date: Fri, 11 Oct 2013 19:40:49 +0400

> 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).





reply via email to

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