Reentrant

From Texas Instruments Embedded Processors Wiki

Jump to: navigation, search
Translate this page to   

Construction Icon small.png This page is currently under construction. The content of this page is due to change quite frequently and thus the quality and accuracy are not guaranteed until this message has been removed. Please feel free to contribute to this page while construction is in progress.


A function is considered reentrant if it can safely be called again while another instance of the function is currently executing, possibly in another thread, interrupt, or process.

Some RTS functions are reentrant, such as abs. Many are not, such as printf.

The topic of whether a function is reentrant or not is a complicated one; you can't simply list functions as being reentrant or not reentrant, you have to specify under which conditions a function is non-reentrant. Sample reasons a function might not be reentrant:

In principle, any function which could set errno is *not* reentrant.

Leave a Comment
Personal tools
Namespaces
Variants
Actions
Navigation
Print/export
Toolbox