EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: RE: multi-threaded client example
From: "Jeff Hill" <[email protected]>
To: "'EPICS Tech Talk'" <[email protected]>
Date: Fri, 20 May 2011 14:05:34 -0600
John,

Sadly, no, I don?t have a simple multithreaded client source code to send
you. The manual does cover this topic, but it doesn?t include an example. I
should write one and include it in the application templates - or in the
manual. 

Nevertheless, the ca details are fairly easy. The hardest part of writing
multithreaded client will be protecting your data structures from
asynchronous callbacks.

To write a multithread ca client code one only needs to create a preemptive
callback ca context, spawn a thread, and then attach to the previously
created ca context with the new thread.

Jeff
______________________________________________________
Jeffrey O. Hill           Email        [email protected]
LANL MS H820              Voice        505 665 1831
Los Alamos NM 87545 USA   FAX          505 665 5107

Message content: TSPA

With sufficient thrust, pigs fly just fine. However, this is
not necessarily a good idea. It is hard to be sure where they
are going to land, and it could be dangerous sitting under them
as they fly overhead. -- RFC 1925


> -----Original Message-----
> From: [email protected] [mailto:[email protected]]
> On Behalf Of John Dobbins
> Sent: Wednesday, May 18, 2011 2:08 PM
> To: EPICS Tech-Talk
> Subject: multi-threaded client example
> 
> I would like to create a c++ client which is capable of handling
> monitors as well as doing other things, e.g. write to a PV in response
> to some event. To this end I am looking for example code that covers the
> essential aspects of creating a multi-threaded client. Can someone
> recommend a basic example to look at?
> 
> John Dobbins
> 
> Cornell Laboratory for Accelerator-based Sciences and Education
> Cornell University



Navigate by Date:
Prev: Problem installing sscan 2-6-6 on cygwin Zhan Zhang
Next: Re: Problem installing sscan 2-6-6 on cygwin Tim Mooney
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: multi-threaded client example John Dobbins
Next: problem with gateway and softIoc running on same server Kevin Tsubota
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 18 Nov 2013 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·