LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Thread safety (https://www.linuxquestions.org/questions/linux-software-2/thread-safety-550724/)

jkoshi 05-02-2007 01:48 PM

Thread safety
 
Hello everyone,

I was wondering if there is a list somewhere of the functions
that are not thread safe under gcc.

regards,
John

wjevans_7d1@yahoo.co 05-02-2007 09:17 PM

Google

Code:

"thread safe" functions
and all will be revealed.

Hope this helps.

jlinkels 05-02-2007 09:59 PM

If I am not mistaken, there are a few functions in the libc which are not thread safe and those are clearly indicated in the GNU libc manual. There are not many of them if I remeber well.

jlinkels

studioj 05-03-2007 01:03 PM

lots of times there are thread safe versions hidden in there as well see
#define _REENTRANT
strtok_r
etc

important to remember
the POSIX/SUSv3 standard developers indicate that atomicity for socket I/O is "unspecified".

its not a bad idea to always do you own serialization.


All times are GMT -5. The time now is 01:56 AM.