[openamq-dev] Multi-threaded connection requests fail?
Elli Barasch
comptonsw at comcast.net
Tue Nov 6 22:29:04 CET 2007
I'd appreciate that - That would help a lot. Maybe I'm missing
something simple in my makefile??
Mike Owens wrote:
> I am using OpenAMQ on Ubuntu Feisty in a multi-threaded build
> (-DREENTRANT -pthread) and everything seems to be working okay. I can
> send you my simple project and you can see if you are getting the same
> problem with it. I combined the im_sender/receiver into a common C++
> class that acts as a consuming/producing peer. Using that class I
> created a simple client and server program. that send messages back
> and forth.
>
> -- Mike
>
> On Nov 6, 2007 2:07 PM, Elli Barasch <comptonsw at comcast.net
> <mailto:comptonsw at comcast.net>> wrote:
>
> Hi,
> In V1.2-c4 on Ubuntu Linux, I'm having difficulty getting
> amq_client_connection_new to return a non-zero connection value when
> built in a multi-threaded environment. The exact same call works just
> fine if I build in single-threaded environment. Any ideas?
>
> The call is being made in the main line of execution, that is, before
> any threads are spun. I expect to be able to create sessions
> within each thread that attach to the main-line's process-global
> connection.
>
> Thanks in advance,
> Elli
>
> Mu
>
> _______________________________________________
> openamq-dev mailing list
> openamq-dev at lists.openamq.org <mailto:openamq-dev at lists.openamq.org>
> http://lists.openamq.org/mailman/listinfo/openamq-dev
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> 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