Although lgamma_r() is not mentioned by POSIX 1003.1c, it was added to complete the functionality provided by similar thread-safe functions.
The gamma() function is currently maintained for compatibility with SVID3 (see standards(5)). It and the gamma_r() function
may be removed from a future release. The lgamma() and lgamma_r() functions should be used instead.
When compiling multi-thread applications, the _REENTRANT flag must be defined on the compile line. This flag should only be used in multi-thread applications.
The lgamma() function is unsafe in multithreaded applications. The lgamma_r() function should be used instead.
|