The liboaf Library | |||
---|---|---|---|
<<< Previous Page | Home | Up | Next Page >>> |
OAF also has a set of asynchronous activation interfaces so that you do not need to block on activation calls. The CORBA level is pretty simple: the activation context has a set of _async calls: OAF_ACtivationContext_activate_async and OAF_ACtivationContext_activate_from_id_async. Both of those calls take an OAFActivationCallback CORBA object as parameter. This object, which is supposed to be implemented by client applications (it is actually implemented in liboaf) will receive CORBA calls when the activation is finished:
module OAF { interface ActivationCallback { oneway void report_activation_failed (in string reason); oneway void report_activation_succeeded (in ActivationResult result); }; }; |
Of course, liboaf provides comvenient wrappers for those CORBA functions. Those are named oaf_activate_async and oaf_activate_from_id_async.