DPDK  19.11.14
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

◆ rte_pause()

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/pipeline_worker_generic.c, examples/eventdev_pipeline/pipeline_worker_tx.c, examples/l2fwd-jobstats/main.c, examples/performance-thread/l3fwd-thread/main.c, examples/tep_termination/main.c, and examples/vhost/main.c.