> which impacts has the multi threading option on error handling? > > Can I catch an error in the error hook and delete the environment only > for the relevant thread? I guess the info object will also be thread > specific.
Yes, glp_error_hook stores an information about registered function in a thread local storage, so there is no interference between threads. However, if a hook is not registered with glp_error_hook or if it being called returns to glp_error, the latter terminates the entire process via abort. Thus, to prevent abnormal termination of the process, the hook routine should terminate only its thread or perform longjmp assuming that due to error no glpk routines can be called any more from that thread (but only from that thread; this does not affect other threads). _______________________________________________ Help-glpk mailing list [email protected] https://lists.gnu.org/mailman/listinfo/help-glpk
