You mean you want the abort API to point somewhere else, without using a new component?
Perhaps a telecon would help resolve this quicker? I'm available tomorrow or anytime next week, if that helps. On Thu, Jun 9, 2011 at 11:02 AM, Josh Hursey <jjhur...@open-mpi.org> wrote: > As long as there is the ability to remove and replace a callback I'm > fine. I personally think that forcing the errmgr to track ordering of > callback registration makes it a more complex solution, but as long as > it works. > > In particular I need to replace the default 'abort' errmgr call in > OMPI with something else. If both are called, then this does not help > me at all - since the abort behavior will be activated either before > or after my callback. So can you explain how I would do that with the > current or the proposed interface? > > -- Josh > > On Thu, Jun 9, 2011 at 12:54 PM, Ralph Castain <r...@open-mpi.org> wrote: > > I agree - let's not get overly complex unless we can clearly articulate a > > requirement to do so. > > > > On Thu, Jun 9, 2011 at 10:45 AM, George Bosilca <bosi...@eecs.utk.edu> > > wrote: > >> > >> This will require exactly opposite registration and de-registration > order, > >> or no de-registration at all (aka no way to unload a component). Or some > >> even more complex code to deal with internally. > >> > >> If the error manager handle the callbacks it can use the registration > >> ordering (which will be what the the approach can do), and can enforce > that > >> all callbacks will be called. I would rather prefer this approach. > >> > >> george. > >> > >> On Jun 9, 2011, at 08:36 , Josh Hursey wrote: > >> > >> > I would prefer returning the previous callback instead of relying on > >> > the errmgr to get the ordering right. Additionally, when I want to > >> > unregister (or replace) a call back it is easy to do that with a > >> > single interface, than introducing a new one to remove a particular > >> > callback. > >> > Register: > >> > ompi_errmgr.set_fault_callback(my_callback, prev_callback); > >> > Deregister: > >> > ompi_errmgr.set_fault_callback(prev_callback, old_callback); > >> > or to eliminate all callbacks (if you needed that for somme reason): > >> > ompi_errmgr.set_fault_callback(NULL, old_callback); > >> > >> > >> _______________________________________________ > >> devel mailing list > >> de...@open-mpi.org > >> http://www.open-mpi.org/mailman/listinfo.cgi/devel > > > > > > _______________________________________________ > > devel mailing list > > de...@open-mpi.org > > http://www.open-mpi.org/mailman/listinfo.cgi/devel > > > > > > -- > Joshua Hursey > Postdoctoral Research Associate > Oak Ridge National Laboratory > http://users.nccs.gov/~jjhursey > > _______________________________________________ > devel mailing list > de...@open-mpi.org > http://www.open-mpi.org/mailman/listinfo.cgi/devel >