Defines reentrancy and includes a POSIX listing of a reentrant function.
定义了可重入性,并包含一个可重入函数的POSIX清单。
Moreover, it may be impossible to make a non-reentrant function thread-safe.
另外,或许不可能让某个不可重入的函数是线程安全的。
A reentrant function can be interrupted at any time and resumed at a later time without loss of data.
可重入函数可以在任意时刻被中断,稍后再继续运行,不会丢失数据。
Note that this follows a standard convention for the naming of reentrant function by suffixing the function name with "_r".
注意,这里遵循了标准惯例,通过向函数名添加“_ r”后缀来命名可重入函数。
Due to the asynchronous nature of signals, it is difficult to point out the bug caused when a signal-handling function triggers a non-reentrant function.
由于信号在本质上是异步的,所以难以找出当信号处理函数触发某个不可重入函数时导致的bug。
A reentrant function can be safely called recursively or from multiple tasks.
可再入的函数可以被安全地递归调用或由多任务多次调用。
A reentrant function can be safely called recursively or from multiple tasks.
可再入的函数可以被安全地递归调用或由多任务多次调用。
应用推荐