Add sleep between retires in bindings

In bindings.py the common retry() function uses a busy loop to retry, in
some cases the busy loop just increase the work loads of mapper and the
caller still get the ObjectPathInUse exception. It's better to sleep for
a while between retries.

A sleep interval is added as parameter default to 0, so the change does
not break existing functions. Then the caller has an option to pass a
sleep interval to indiciate it would sleep for an interval between
retries.

Change-Id: Ie1f248dc0b1be291dfa597eba2f58ba9bf247d6b
Signed-off-by: Lei YU <mine260309@gmail.com>
1 file changed
tree: fbc38fb61b3eed3038db8f2746131a301133d582
  1. libmapper/
  2. obmc/
  3. .gitignore
  4. bootstrap.sh
  5. configure.ac
  6. LICENSE
  7. Makefile.am
  8. phosphor-mapper
  9. README.md
  10. setup.py.in
README.md

To Build

To build this package, do the following steps:

    1. ./bootstrap.sh
    2. ./configure ${CONFIGURE_FLAGS}
    3. make

To full clean the repository again run `./bootstrap.sh clean`.