mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-30 10:38:55 +00:00
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(); }
|
||||
|
Loading…
Reference in New Issue
Block a user