[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-glpk] Thread-safety
From: |
Andrew Makhorin |
Subject: |
Re: [Help-glpk] Thread-safety |
Date: |
Tue, 12 Dec 2006 11:06:11 +0300 |
> What I need is indeed reentrability : what I want to do is solve
> different subproblems of the same problem in parallel, so each LPX is
> local to one thread only.
This must work.
>
> I think it should be possible to implement an GNU/Linux equivalent
> for your TLS-based routines, using the pthread_setspecific family of
> routines of the POSIX threads library. I can have a look at it, if
> you like.
If you are using posix pthreads, writing that two routines must be
easy to you; see w32 version and examples/mtsamp.c as an example.
I did not include the posix version in the distribution because of its
incompatibility with GNU/Linux.