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

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

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