如果您有一个库中的函数f_func()并且您知道它不可重入,那么您将如何在线程环境(POSIX)中使用它?您无法访问库的源代码.
f_func()
c reentrancy
c ×1
reentrancy ×1