MIDRANGE dot COM Mailing List Archive



Home » MIDRANGE-L » October 2012

Re: Callback



fixed

On Mon, 15 Oct 2012 13:50:01 -0700, Richard Reeve wrote:

Has anyone ever heard of a callback as it is related to the IBM i?

Callbacks are procedures that are executed when something happens. For
instance, it's common in some environments to specify a callback
procedure to execute when a timer expires, or when a UI control grabs or
looses focus.

You ordinarily specify a procedure pointer to register or subscribe a
callback procedure to the particular event. That makes it possible for
the operating system or controlling program to execute any properly
registered procedure.

I've just been working with the CEERTX API. You specify a procedure
pointer when you call it, which registers a callback procedure to execute
during abnormal program termination. It can ensure that required clean-up
operations always get performed, even if the program fails unexpectedly.

Pete





Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2014 by MIDRANGE dot COM and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available here. If you have questions about this, please contact