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 |
Google
Code:
"thread safe" functions Hope this helps. |
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 |
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. |