4 ms·
So at line 12, it's a macro for a loop right ? Or am I missing something ? https://gist.github.com/PeterCorless/f83c09cc62ccd60e595e4eb124c1676e#file-newstack
by cassepipe 6y ago
So at line 12, it's a macro for a loop right ? Or am I missing something ?
https://gist.github.com/PeterCorless/f83c09cc62ccd60e595e4eb124c1676e#file-newstack-03-io_uring-event-loop-c https://gist.github.com/PeterCorless/f83c09cc62ccd60e595e4eb...
- layoutIfNeeded 6y ago#define io_uring_for_each_cqe(ring, head, cqe) \ /* \ * io_uring_smp_load_acquire() enforces the order of tail \ * and CQE reads. \ */ \ for (head = *(ring)->cq.khead; \ (cqe = (head != io_uring_smp_load_acquire((ring)->cq.ktail) ? \ &(ring)->cq.cqes[head & (*(ring)->cq.kring_mask)] : NULL)); \ head++)