mirror of
https://github.com/mmueller41/genode.git
synced 2026-01-21 20:42:56 +01:00
committed by
Christian Helmuth
parent
d23dd0cdb4
commit
bf83c07923
@@ -38,7 +38,7 @@ namespace Genode {
|
||||
*/
|
||||
template <typename EXC, typename FUNC, typename HANDLER>
|
||||
auto Genode::retry(FUNC func, HANDLER handler,
|
||||
unsigned attempts = ~0U) -> decltype(func())
|
||||
unsigned attempts) -> decltype(func())
|
||||
{
|
||||
for (unsigned i = 0; attempts == ~0U || i < attempts; i++)
|
||||
try { return func(); }
|
||||
|
||||
Reference in New Issue
Block a user