[openamq-dev] Multi-threaded connection requests fail?
Elli Barasch
comptonsw at comcast.net
Wed Nov 7 08:07:09 CET 2007
Thanks for the help Mike, but as I wrote privately, your implementation
doesn't address my
problem, so I'm reissuing this request back to the authors:
amq_client_connection_new fails if
I build a multithreaded client under Ubuntu Gutsy. It does _not_ fail
when built single-threaded...
Please advise.
Elli Barasch wrote:
> 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
>>
>>
>
> _______________________________________________
> 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/20071107/cb26f049/attachment.htm
More information about the openamq-dev
mailing list