masters-thesis/listings/cq_time.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

18 lines
460 B
C

struct timespec tp;
while (1) {
ibv_get_cq_event(); // Only necessary for event based polling
while (ibv_poll_cq()) {
clock_gettime(CLOCK_MONOTONIC, &tp);
/**
* Save tp and message identifier in an array and
* return as soon as possible, so that as little
* as possible time is lost before polling goes on.
*/
}
ibv_req_notify_cq(); // Only necessary for event based polling
}