[erlang-bugs] Re: erl_interface and threads

Andrew Thompson <>
Thu Apr 7 20:15:20 CEST 2011


On Thu, Apr 07, 2011 at 01:08:37PM -0400, Michael Santos wrote:
> On Thu, Apr 07, 2011 at 09:53:05AM +0200, Benjamin Winkler wrote:
> > Hi!
> >
> > We are using Erlang and specifically the erl_interface for C (Visual  
> > Studio C++ 2008, Windows 7) to connect to our Erlang servers. We have  
> > noticed weird errors when creating (and freeing) terms in different  
> > threads. It seems to me that the memory allocation module is not  
> > thread-aware.
> 
> This isn't helpful with solving your problem with erl_interface but
> have you looked at the newer ei interface? It lets you manage the memory
> yourself (or allocates memory for you if you use the ei_x_* functions).
> 

I'm pretty sure that the whole point of ei is to be a thread-safe
replacement for erl_interface.

Andrew


More information about the erlang-bugs mailing list