DPDK  17.08.2
Functions
rte_pause.h File Reference

Go to the source code of this file.

Functions

static void rte_pause (void)

Detailed Description

CPU pause operation.

Definition in file rte_pause.h.

Function Documentation

static void rte_pause ( void  )
inlinestatic

Pause CPU execution for a short while

This call is intended for tight loops which poll a shared resource or wait for an event. A short pause within the loop may reduce the power consumption.

Examples:
examples/distributor/main.c, examples/eventdev_pipeline_sw_pmd/main.c, examples/l2fwd-jobstats/main.c, examples/performance-thread/l3fwd-thread/main.c, examples/tep_termination/main.c, examples/vhost/main.c, and examples/vhost_xen/main.c.