masters-thesis/listings/timerfd_wait.c
Dennis af25b4b828 Initial commit of master's thesis
This is the version I submitted to RWTH Aachen University at November 9,
2018.
2018-11-12 12:56:59 +01:00

13 lines
160 B
C

uint64_t task_wait(struct task *t)
{
int ret;
uint64_t steps;
ret = read(t->fd, &steps, sizeof(steps));
if (ret < 0)
return 0;
return steps;
}