help-glpk
[Top][All Lists]
Advanced

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

Re: [Help-glpk] Thred safety


From: Michael Hennebry
Subject: Re: [Help-glpk] Thred safety
Date: Mon, 30 Jan 2017 10:51:43 -0600 (CST)
User-agent: Alpine 2.20 (DEB 67 2015-01-07)

On Sun, 29 Jan 2017, Andrew Makhorin wrote:

I replaced all calls to gmtime, strerror, and strtok with corresponding
calls to wrappers xgmtime, xstrerr, and xstrtok (see env/stdc.c).

At the moment the wrappers just call corresponding standard functions.
Any idea how to better implement them?

Until you have something better,
sandwich the calls and the data-copying between a mutex lock and unlock.
With threads, I expect implementation-dependent stuff.
I expect it can be placed in a header file.

--
Michael   address@hidden
"Sorry but your password must contain an uppercase letter, a number,
a haiku, a gang sign, a heiroglyph, and the blood of a virgin."
                                                             --  someeecards



reply via email to

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