[asterisk-dev] Re: [asterisk-commits] russell: trunk r48019 - in /trunk/include/asterisk: threadstorage.h utils.h

Kevin P. Fleming kpfleming at digium.com
Wed Nov 29 11:01:09 MST 2006


Russell Bryant wrote:
> A reentrant function:
> 
>    - Does not hold static data over successive calls

OK, given this definition I'd agree, but I'm concerned that the more
common understanding of non-reentrant functions (in most people's minds)
is that the function is also not thread-safe, but in this case we have a
non-reentrant function that IS thread-safe (in spite of the quote you
supplied implying that such a thing may not be possible <G>).

Given that, the comment in utils.h in trunk is completely accurate, so
we should probably copy those doc changes back down to 1.4 as well.


More information about the asterisk-dev mailing list