[openamq-dev] Multi-threaded connection requests fail?
Mike Owens
mikeowens at gmail.com
Tue Nov 6 22:25:55 CET 2007
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> 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
> http://lists.openamq.org/mailman/listinfo/openamq-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openamq.org/pipermail/openamq-dev/attachments/20071106/6ecb076c/attachment-0001.htm
More information about the openamq-dev
mailing list