Hi Ben,
Thank you for your reply. I have now disabled preemptive callback. I am
using ca_poll to process the CA client and FileDescriptorManager.process
to run the portable channel access server. These are called together in a
single loop. However, once the CA client has attached to a number of
process variables, the CA background activity that runs due to the ca_poll
seems to delay the call to FileDescriptorManager.process too much. This
results in calls to caget for process variables in the portable channel
access server timing out. Is there another way to do this? Also, is there
a way to avoid having the CA client search for process variables on the
portable channel access server, but still look for them on the localhost?
Thank you,
Patrick
> On Monday, February 25, 2013 14:58:36 [email protected] wrote:
>> I think it turns out that the problem was
>> that I actually had preemptive callback enabled and I should not have.
>
> Yes. If you use preemptive callback (i.e. multithreaded CA client) don't
> create a FileDescriptorManager. It is only needed for single-threaded
> clients
> and can be used to centralize the call to select in case the CA client is
> used
> together with other stuff that wants to call select (such as a GUI
> library).
>
> Cheers
> --
> Ben Franksen
> () ascii ribbon campaign - against html e-mail
> /\ www.asciiribbon.org - against proprietary attachments
>
>
> ________________________________
>
> Helmholtz-Zentrum Berlin für Materialien und Energie GmbH
>
> Mitglied der Hermann von Helmholtz-Gemeinschaft Deutscher
> Forschungszentren e.V.
>
> Aufsichtsrat: Vorsitzender Prof. Dr. Dr. h.c. mult. Joachim Treusch, stv.
> Vorsitzende Dr. Beatrix Vierkorn-Rudolph
> Geschäftsführung: Prof. Dr. Anke Rita Kaysser-Pyzalla, Thomas Frederking
>
> Sitz Berlin, AG Charlottenburg, 89 HRB 5583
>
> Postadresse:
> Hahn-Meitner-Platz 1
> D-14109 Berlin
>
> http://www.helmholtz-berlin.de
>
>
- Replies:
- Re: caClient with PCAS Benjamin Franksen
- References:
- caClient with PCAS pthomas
- Re: caClient with PCAS Xiaoqiang Wang
- Re: caClient with PCAS pthomas
- Re: caClient with PCAS Benjamin Franksen
- Navigate by Date:
- Prev:
Re: caClient with PCAS Benjamin Franksen
- Next:
ProcServ patch Bruce Hill
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
<2013>
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
Re: caClient with PCAS Benjamin Franksen
- Next:
Re: caClient with PCAS Benjamin Franksen
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
<2013>
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|