> 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. _______________________________________________ Help-glpk mailing list Help-glpk@gnu.org http://lists.gnu.org/mailman/listinfo/help-glpk