]> git.ipfire.org Git - thirdparty/kmod.git/commit
util: Add exponential backoff sleep
authorLucas De Marchi <lucas.de.marchi@gmail.com>
Fri, 3 Jun 2022 21:50:45 +0000 (14:50 -0700)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Mon, 27 Jun 2022 06:23:46 +0000 (23:23 -0700)
commit8ab15eceafd46fcaf2f8874af7d52d0622127655
treeafc4d840e2e1983382be6e2d049712454faf6bfe
parentba105fafed8ccabc0a427049a14e093b914f7ddc
util: Add exponential backoff sleep

Add simple functions to put the current thread to sleep using
exponential backoff to split the interval in smaller pieces.

Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
shared/util.c
shared/util.h