[Asterisk-Dev] thread-safe and reentrant functions
Gene Kochanowsky
gene at solutionsciences.com
Wed Aug 27 10:00:40 MST 2003
I would recommend it because it will force you to rigorously architect the application and would make it easier for others to understand Asterisks architecture by just examining the code. Also I think the functionality of Asterisk is a natural for multiple-inheritance. I also think that it would allow you to create classes for threading and thread safe code that was easily maintainable across the entire application from a few classes. It would make porting to other platforms a great deal easier since you could also layer Asterisk. And lastly, I think it would allow you to architect Asterisk to make it a great deal more extensible than it is now. Design by functional decomposition is okay, but doesn't compare to designing with objects.
Gene
-----Original Message-----
From: Steven Critchfield [mailto:critch at basesys.com]
Sent: Wednesday, August 27, 2003 12:38 PM
To: asterisk-dev at lists.digium.com
Subject: RE: [Asterisk-Dev] thread-safe and reentrant functions
On Wed, 2003-08-27 at 11:04, Gene Kochanowsky wrote:
> As long as people are making requests regarding the Asterisk code
> base, I would like to see asterisk converted to an object oriented
> application.
Can you give a compelling answer as to why? At least the message that
started the thread is working towards reduced number of bugs.
> -----Original Message-----
> From: Angel Carpintero [mailto:acp at e-group.org]
> Sent: Wednesday, August 27, 2003 7:52 AM
> To: asterisk-dev at lists.digium.com
> Subject: [Asterisk-Dev] thread-safe and reentrant functions
>
>
>
> Hi all ,
>
> I was looking at the source code and i found some not reentrant functions
> like gethostbyname() . I guess that makes asterisk not thread-safe , and it should
> be solved . However i have test asterisk and seems to be quite *stable* ,
>
> Should it be patched with reentrant functions , for instance gethostbyname_r() ?
>
> Feel free to give your commments/opinios.
>
> Cheers.
--
Steven Critchfield <critch at basesys.com>
_______________________________________________
Asterisk-Dev mailing list
Asterisk-Dev at lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-dev
More information about the asterisk-dev
mailing list