我知道 _r
后缀用于表示线程安全的东西。例如 strtok
和 strtok_r
或 libmysql.so
和 libmysql_r.so
。但我在任何地方都找不到这到底意味着什么?例如,_t
表示“类型”,_r
后缀是什么意思?
最佳答案
请参阅 http://pubs.opengroup.org/onlinepubs/000095399/xrat/xbd_chap04.html 中的 A.4.16 线程安全
章:
The suffix "_r" is historical, where the 'r' stood for "reentrant".
关于c++ - _r 后缀是什么意思?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13103410/