Add retry to dispatch mechanism in case of guard failure

This commit is contained in:
Jason Turner 2009-06-27 14:00:22 +00:00
parent 9b8fcef612
commit 8d42015334

View File

@ -340,9 +340,12 @@ namespace dispatchkit
try {
return (*itr->second)(plist);
} catch (const bad_boxed_cast &) {
//try again
//parameter failed to cast, try again
} catch (const arity_error &) {
//invalid num params, try again
} catch (const guard_error &) {
//guard failed to allow the function to execute,
//try again
}
}