~brianaker/libmemcached/1164440

« back to all changes in this revision

Viewing changes to libtest/wait.h

Merge working tree with build tree.

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
#include <unistd.h>
26
26
#include <string>
27
27
 
 
28
#include <libtest/dream.h>
 
29
 
28
30
namespace libtest {
29
31
 
30
32
class Wait 
57
59
      }
58
60
 
59
61
      this_wait= retry * retry / 3 + 1;
60
 
      sleep(this_wait);
61
 
#ifdef WIN32
62
 
      sleep(this_wait);
63
 
#else
64
 
      struct timespec global_sleep_value= { this_wait, 0 };
65
 
      nanosleep(&global_sleep_value, NULL);
66
 
#endif
 
62
      libtest::dream(this_wait, 0);
67
63
    }
68
64
  }
69
65