[openamq-dev] concurrent call of amq_client_connection_new()

Martin Sustrik sustrik at imatix.com
Wed Jan 30 14:14:10 CET 2008


Hi,

The thing you are doing should work ok. This looks like a bug. Do you 
have a simple test program to reproduce the behaviour?
In the meantime, as a workaround, just open the two connections 
consecutively.

Thanks for reporting the problem.
Martin

Jörg Fischer wrote:
> Hi,
>
> I've got a question concerning the function amq_client_connection_new().
> In my multithreaded application two threads are started. Both of them call
> amq_client_connection_new() simultaneously with different parameters.
> Then the whole application hangs, probably a deadlock.
>
> Do I have to restrict calls to amq_client_connection_new() such that only
> one thread at a time can call it?
>
> Thanks,
>
> Joerg Fischer
> _______________________________________________
> openamq-dev mailing list
> openamq-dev at lists.openamq.org
> http://lists.openamq.org/mailman/listinfo/openamq-dev
>   



More information about the openamq-dev mailing list