[openamq-dev] Multi-threaded connection requests fail?
Elli Barasch
comptonsw at comcast.net
Thu Nov 8 13:50:35 CET 2007
Attached is a noodled-up adaptation of your amq_client.c, linked against
pthreads.
Strangely, I did have success exactly once, so I am still not sure what
is going on...
The problem lies on the first connection_new call. I can't get past that.
Further, must the thread functions declare their own private
connections, or may they attach their sessions
to the process global connection established by the main function?
Elli
Pieter Hintjens wrote:
> On Nov 6, 2007 9:07 PM, Elli Barasch <comptonsw at comcast.net> wrote:
>
>
>> 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?
>>
>
> Could you provide a minimal stripped-down example that demonstrates the problem?
>
> Presumably the simple test clients - such as amq_client.c and the PAL
> test scripts - work. So, your application is doing something else
> that is getting in the way of the OpenAMQ threading. I'd hesitate to
> guess what this is... but by stripping down your test case you may
> discover it. Otherwise we will happily debug this minimal test case.
>
> -
> Pieter Hintjens
> iMatix
> _______________________________________________
> 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/20071108/6f9eaadd/attachment.htm
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: main.c
Url: http://lists.openamq.org/pipermail/openamq-dev/attachments/20071108/6f9eaadd/attachment.txt
More information about the openamq-dev
mailing list