summaryrefslogtreecommitdiff
path: root/src/libstddjb/deepsleepuntil.c
blob: 77ac080b91300b3d8831462633659d60ac02a452 (plain)
1
2
3
4
5
6
7
8
9
10
/* ISC license. */

#include <skalibs/tai.h>
#include <skalibs/iopause.h>

void deepsleepuntil (tain_t const *deadline, tain_t *stamp)
{
  iopause_fd x ;
  while (tain_less(stamp, deadline)) iopause_stamp(&x, 0, deadline, stamp) ;
}