[Top][All Lists]

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

Re: [Help-glpk] Thread safety of GLPK

From: Andrew Makhorin
Subject: Re: [Help-glpk] Thread safety of GLPK
Date: Wed, 14 Apr 2010 23:35:40 +0400

> I wonder if it would be feasible to re-implement this using the
> posix threads API

The main routine should call pthread_key_create to create a thread
specific location used to store a pointer to the glpk environment
block. The routine tls_set_ptr should call pthread_setspecific to
store the pointer into the specific location, and the routine
tls_get_ptr should call pthread_getspecific to retrieve the pointer
from the specific location.

reply via email to

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