What do we mean by a reentrant lock?
reentrant锁意味着什么呢?
Must not call non-reentrant functions?
绝对不调用不可重入的函数。
Must not call any non-reentrant functions
绝不调用任何不可重入函数。
Non-reentrant functions and static variables.
不可重入函数和静态变量。
Non-reentrant functions cannot be used by multiple threads.
不可重入的函数不能由多个线程使用。
Closures are needed if you need your rules to be reentrant.
如果你想让你的规则变成可再入的,那闭包就是必须的了。
Remembering the state of the data makes the function non-reentrant.
记忆数据的状态会使函数不可重入。
Defines reentrancy and includes a POSIX listing of a reentrant function.
定义了可重入性,并包含一个可重入函数的POSIX清单。
Occurrence of some of the RA may be attributed to reentrant mechanism.
部分RA的发生仍有折返机制参与。
Suppose that the signal handler USES gethostbyname, which is non-reentrant.
假定信号处理器使用了不可重入的gethostbyname。
The rest of the functions are non-reentrant because of any of the following.
出于以下任意某个原因,其余函数是不可重入的。
It is acceptable because our test framework is not multithreaded or reentrant.
这是可以接受的,因为我们的测试框架不是多线程的或可重入的。
Returning a pointer to static data may cause a function to be non-reentrant.
返回指向静态数据的指针可能会导致函数不可重入。
Moreover, it may be impossible to make a non-reentrant function thread-safe.
另外,或许不可能让某个不可重入的函数是线程安全的。
A reentrant function can be safely called recursively or from multiple tasks.
可再入的函数可以被安全地递归调用或由多任务多次调用。
I would like to propose a model for dealing with reentrant functions at the compiler level.
我将提出一个在编译器层次处理可重入函数的模型。
A reentrant function can be interrupted at any time and resumed at a later time without loss of data.
可重入函数可以在任意时刻被中断,稍后再继续运行,不会丢失数据。
Double tract conduction is the physiological basis of intra-atrial ventricular reentrant tachycardia.
房室结双径传导,是房室结内折返性心动过速的电生理基础。
Note that this follows a standard convention for the naming of reentrant function by suffixing the function name with "_r".
注意,这里遵循了标准惯例,通过向函数名添加“_ r”后缀来命名可重入函数。
The good news is, these days many vendors have taken the initiative to provide reentrant versions of the standard C library.
近来很多提供商已经开始提供标准c程序库的可重入版本,这是一个好消息。
On most systems, malloc and free are not reentrant, because they use a static data structure that records which memory blocks are free.
在大部分系统中,malloc和free都不是可重入的,因为它们使用静态数据结构来记录哪些内存块是空闲的。
If a function USES and modifies an object that you supply, it is potentially non-reentrant; two calls can interfere if they use the same object.
如果某个函数使用并修改了您提供的某个对象,那它可能就是不可重入的;如果两个调用使用同一对象,那么它们会相互干扰。
Ensuring guideline 3 requires the compiler to have prior knowledge of all the reentrant functions, including the libraries used by the application.
确保准则3得到满足,要求编译器预先知道所有可重入函数,包括应用程序所使用的程序库。
When the random concentration of the crystal field decreases the tricritical point is depressed, at the same time the reentrant phenomenon occurs.
随着晶场随机浓度的减小,三临界点被抑制,同时出现了二级相变线的重入现象;
You can implement the reentrant version of this function by changing the prototype of the function. This listing provides storage for the output string
通过修改函数的原型,您可以实现这个函数的可重入版本。
If the underlying function is in the middle of a critical section and a signal is generated and handled, this can cause the function to be non-reentrant.
如果底层的函数处于关键部分,并且生成并处理信号,那么这可能会导致函数不可重入。
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。
Things become even more complicated when you're using a third-party library, because you never know which parts of the library are reentrant and which are not.
如果使用第三方程序库,事情会变得更为复杂,因为您永远不知道哪部分程序库是可重入的,哪部分是不可重入的。
Things become even more complicated when you're using a third-party library, because you never know which parts of the library are reentrant and which are not.
如果使用第三方程序库,事情会变得更为复杂,因为您永远不知道哪部分程序库是可重入的,哪部分是不可重入的。
应用推荐