Am Freitag, 21. Juni 2013, 17:24:29 schrieb Andrew Johnson:
> On 2013-06-21 Benjamin Franksen wrote:
> > On Friday, June 21, 2013 11:18:07 Benjamin Franksen wrote:
> > > The errlog facility provides errlogAddListener, and
> > > errlogRemoveListener. Unfortunately, the latter is broken, as there is
> > > no way to specify the listener's private data. So if I have two
> > > listeners which differ only in their private data (such as when using
> > > two instances of feller), then I can only remove them all at once, not
> > > each one separately.
> [...]
> > > The attached patch file rectifies that by adding an
> > > errlogRemoveSingleListener function to the API that allows to remove
> > > single instances.
>
> Thanks, I will consider this for the 3.15 branch.
Cool. However, for 3.15 I propose to change the existing errlogRemoveListener,
instead of adding a new function; I was speculating on the patch being
accepted for 3.14.12.4, which is why I added a new function.
> > In the meantime, I wonder how to proceed with the feller module.
>
> ...
>
> > Better ideas would be much appreciated.
>
> You could just register one listener and keep your own list of clients
> which that listener traverses when it gets called. Now you can delete
> specific entries at leisure because you own the list.
My colleague Götz suggested the same and so this is what I did. Not much of a
problem since I already had such a list. (I needed it so that when the user
gives a file name for which a feller already exists, she gets back the
existing feller, not a new one; fellerCreate will output a warning in this
case, since this is typically not what you want).
It's all implemented in the newly released feller-0.3.
Cheers and thanks to everyone for the valuable feedback.
--
Ben Franksen
() ascii ribbon campaign - against html e-mail
/\ www.asciiribbon.org - against proprietary attachm€nts
________________________________
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: Problem in errlogRemoveListener Andrew Johnson
- References:
- Problem in errlogRemoveListener Benjamin Franksen
- Re: Problem in errlogRemoveListener Benjamin Franksen
- Re: Problem in errlogRemoveListener Andrew Johnson
- Navigate by Date:
- Prev:
RE: Using all the cores available on modern processors Mark Rivers
- Next:
Re: help setting up XY table control with EPICS StreamerClass Christian Pauly
- 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: Problem in errlogRemoveListener Andrew Johnson
- Next:
Re: Problem in errlogRemoveListener Andrew Johnson
- 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
|