miri::shims::unix::linux::eventfd

Function eventfd_read

Source
fn eventfd_read<'tcx>(
    buf_place: MPlaceTy<'tcx>,
    dest: &MPlaceTy<'tcx>,
    weak_eventfd: WeakFileDescriptionRef,
    ecx: &mut MiriInterpCx<'tcx>,
) -> InterpResult<'tcx>
Expand description

Block thread if the current counter is 0, else just return the current counter value to the caller and set the counter to 0.